Address locator - restrict search extent

2249
3
02-09-2012 08:06 AM
JodiFlory
New Contributor II
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
Frequent Contributor
Yes, but you need to be hitting a ArcGIS Server 10.1 service. The additional parameter for addressToLocations is searchExtent.
0 Kudos
JodiFlory
New Contributor II
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
New Contributor II
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