Select to view content in your preferred language

Can I create a layer from the custom REST web service?

616
5
03-30-2022 11:25 AM
BTDS_GISAdmin
Emerging Contributor

I am new to ArcGIS. If I have a REST API that provide the latitude, longitude and some other data, can I use it to create a layer for the Map in ArcGIS Pro? Or Can the source of the feature layer from the REST API? Also, if the data in the REST API is change every second, how I can refresh it automatically??

0 Kudos
5 Replies
Luke_Pinner
MVP Regular Contributor

Can you provide more details about the API and its output format?

0 Kudos
BTDS_GISAdmin
Emerging Contributor

The API will provide the latitude, longitude, some description, and the color code for the label. We want to show the color dot on the map, and the label those come from the API

0 Kudos
Luke_Pinner
MVP Regular Contributor

Can you provide some actual detail about the API output format? Perhaps an example response.

0 Kudos
BTDS_GISAdmin
Emerging Contributor

{
{
"office_CD": "MB01",
"color": "GREEN",
"description": "BROADWAY",
"lat": 40.751860,
"long": -73.987370
},
{
"office_CD": "MR06",
"color": "GREEN",
"description": "PELL ST",
"lat": 40.714981,
"long": -73.998520
}

}


 

 

0 Kudos
Luke_Pinner
MVP Regular Contributor

No that's just a generic JSON response.  You'd have to do something to convert it into an EsriJSON or GeoJSON.

https://support.esri.com/en/technical-article/000025450

0 Kudos