Select to view content in your preferred language

API for Network Analysis

615
0
02-26-2013 09:30 AM
ChenChen3
Emerging Contributor
Hi, can someone help me with this problem?

I published a network analysis service on a ArcGIS server, and I switched the url in the sample code: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/routetask_directions with the url for my service. However, when I type the origin and destination addresses and click "Get directions" button, it always gives back the message: "An error occured
TypeError: solveResult.routeResults[0] is undefined". How can I solve this error?

Thanks
0 Kudos
0 Replies