Search Widget Graphic

212
3
Jump to solution
04-15-2019 09:33 AM
DavidKucharski
New Contributor II

Using the Search Widget, my map zooms into the area and then shows a circle. What is that circle representing? Population centroid?

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

Ah, I see. Yes, if you supply just a zip code using the findAddressCandidates operation or the geocodeAddresses operation, the returned lat/long is the centroid of the zip code polygon.

View solution in original post

0 Kudos
3 Replies
Noah-Sager
Esri Regular Contributor

I may be misunderstanding your question, but I believe that circle is just a graphic added to the map to indicate the location result of the Search.

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#resultGraphic

0 Kudos
DavidKucharski
New Contributor II

Noah,

Thanks for the reply. I probably to make my question clear. The search widget uses the esri geocoder.

My question is, when I search for a zip code, the geocoder comes back with a specific latitude/longitude combination. What combination is Esri returning on a search? Is it the population centroid?

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?

0 Kudos
Noah-Sager
Esri Regular Contributor

Ah, I see. Yes, if you supply just a zip code using the findAddressCandidates operation or the geocodeAddresses operation, the returned lat/long is the centroid of the zip code polygon.

0 Kudos