Select to view content in your preferred language

is there any api which provide boundary coordinates of city, county and country ? I want to use those api to draw boundary for search place. Example: If i search for Arizona USA i should get coordinate for Arizona jurisdictional boundary

3517
4
09-09-2020 02:52 AM
mukulchavan
Emerging Contributor

Is there any api which provide boundary coordinates of city, county and country ? I want to use those api to draw boundary for search place. Example: If i search for Arizona USA i should get coordinate for Arizona jurisdictional boundary. 

0 Kudos
4 Replies
Egge-Jan_Pollé
MVP Regular Contributor

Hi mukul chavan,

I think you should have a look at the ArcGIS REST API:

ArcGIS REST API | ArcGIS for Developers 

Below you will find an example retrieving the boundary of the state of Arizona:

https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_States_Generalized/FeatureServ... 

HTH,

Egge-Jan

mukulchavan
Emerging Contributor

Hey Thanks!!!

I have gone through api link which you have provided. But did not get information which I am seeking. Can you please provide me link from where did you get "https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgis.com%2FP3ePLMYs2RVChk... " this service, so that I can get much information on how to pass queryparams , what should be passed to get county boundary , city boundary , district boundary..

0 Kudos
Egge-Jan_Pollé
MVP Regular Contributor

Hi mukul chavan,

I found this map through the Living Atlas: https://www.arcgis.com/home/item.html?id=d7c21ac2f29348cebf45f70515f72a42 

The underlying service can be found here: https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_States_Generalized/FeatureServ... 

At the bottom of this page you will find a link to query the service:

https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_States_Generalized/FeatureServ... 

Here you can enter your parameters - see screen capture.

BR,

Egge-Jan

mukulchavan
Emerging Contributor

Hi Egge-Jabn,

I have gone through API repository and found state & county data but did not found any api which will return boundary coordinates for city , town and district. 

I have search data on https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services  this link.

Example :- I want to get boundary coordinates for Gilbert in Arizona, which API I should consume for this?

0 Kudos