how to use SearchExtent within Geocoding Service parameters?
I would like limit the forward geocoding to a specific extent. I couldn't seem to find any documentation on how to set/use the SearchExtent parameter. Has anyone used SearchExtent successfully?
The following link shows how the Esri javascript api Search Tool can be limited to a certain extent. I've done this successfully in other applications.
https://community.esri.com/thread/158365

0
-
Hi Brian,
It's been a while since I've tried this, but I think you can supply an extent as two pairs of lat/long coordinates.
See: https://developers.arcgis.com/rest/geocode/api-reference/geocoding-find-address-candidates.htm#ESRI_SECTION1_E7214BD3ADA34C50A2B88C08F253DF41
You may also be able to use a JSON envelope with a spatial reference, as documented by Esri.
Regards,
-Malcolm0 -
I've tried both scenarios, lat/long pairs and the json envelope but the query to the geocoder doesn't include the searchExtent parameter.
The resulting url from Geocortex is https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=bismarck&f=json&outSR={"wkid":102100}
searchExtent
{xmin:-104.106780281,ymin:45.860090803,xmax:-96.476341624,ymax:49.065308176,spatialReference:{wkid: 4326}}
-104.106780281,45.860090803,-96.476341624,49.065308176
0 -
Hi, did you ever get this working? 0 -
Hi Brian,
I noticed one thing, If we select “Global Search Key” as “SingleLine” then Geocortex not considering the parameters at all.
Please change the Key to “Address” and define your parameters and the geocoder URL request framing the parameter values what we defined.
It worked for me.0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare