Select to view content in your preferred language

Address locator - restrict search extent

2325
3
02-09-2012 08:06 AM
JodiFlory
Occasional Contributor
Is it possible restrict an address search to a specific map extent or a place (ie. state) in the URL of a locator service?  I'm using the North American Address locator.

Thanks!
3 Replies
derekswingley1
Deactivated User
Yes, but you need to be hitting a ArcGIS Server 10.1 service. The additional parameter for addressToLocations is searchExtent.
0 Kudos
JodiFlory
Occasional Contributor
Great thanks!

Ended up using "http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/findAddre...", instead of spatial extent parameters...
0 Kudos
JodiFlory
Occasional Contributor
Update!!  Please note.

I would strongly advise against using "/findAddressCandidates?State=IA" at the end of your service URL.  It caused my point graphic to disappear on the reverse geocode function.  Strange, but true.  I'm now using var params = {address: address, searchExtent: map.extent}; in locator.addressToLocations.
0 Kudos