theresiafreska

Multi-line geocode failed

Discussion created by theresiafreska on May 24, 2012
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?

Outcomes