Select to view content in your preferred language

Multi-line geocode failed

566
0
05-24-2012 01:25 AM
TheresiaFreska
New Contributor
I followed this example for a multi-line geocode and it works fine on my computer. Yet when I tried merging the code into an existing app built with Dojo, it failed. The service called didn't return any results.

http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer/findAddressCandidates?Address=380%20New%20York%20Street&City=Redlands&State=CA&Zip=92373&f=json&outFields=Loc_name&callback=dojo.io.script.jsonp_dojoIoScript3._jsonpCallback


When I tried to use a single-line geocode for the same request, it returns a value.

http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer/findAddressCandidates?SingleLine=380%20New%20York%20St%2C%20Redlands%2C%20CA%2C%2092373&f=json&outSR=%7B%22wkid%22%3A3857%7D&outFields=Loc_name&callback=dojo.io.script.jsonp_dojoIoScript3._jsonpCallback


I'm using ArcGIS for Javascript 2.8 and Dojo 1.6.0. Did I miss something?
0 Kudos
0 Replies