What is the WSDL or REST web service that does the geocoding?

1011
3
08-15-2012 11:45 AM
HubertLo
New Contributor
Looking at the Find Address sample I know I can use the esri.tasks.locator object with Geocoder URL ( http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer ) and call the addressToLocations method. Is there a WSDL or REST web service URL I can call on the ESRI server to do the geocoding directly?

The reason for that is I may need to access it in the back end of my code and I cannot use the JavaScript API to handle that. A direct call to the proper web service thru codes will have to be the way to go. Where can find such information? Can it be done like that?

Thanks in advance.
0 Kudos
3 Replies
AnthonyGiles
Frequent Contributor
Hubert,

I'm not sure how Esri have set that service up, as a geocode service normally has REST and SOAP as supported interfaces, see:

http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Places_World/GeocodeServer

Regards

Anthony
0 Kudos
HubertLo
New Contributor
Thank you Anthony.

If you have a simple address, which Operation do I need to call to get back the X and Y? Can I set the spatial reference in the call?

Hubert
0 Kudos
AnthonyGiles
Frequent Contributor
Hurbert,

you want to use the method addressToLocations, see:

http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jsapi_start.htm#jsapi/lo...

Regards

Anthony
0 Kudos