Select to view content in your preferred language

Extract geometries from API endpoint

162
4
4 weeks ago
IB3
by
Regular Contributor

Hi, 

I am trying to access the geometries of this endpoint API https://developer.omgevingswet.overheid.nl/api-register/api/rp-opvragen/. I want to extract the geometries that overlap with an area (stored in a feature layer), and add the result in a we map in arcgis online. 

I am new to this process and I managed to access the end point,  but couldnt come pass that. I am stuck at the point to extract the geometries. 

Someone can help me with this flow? 

Thanks!

4 Replies
CodyPatterson
MVP Regular Contributor

Hey @IB3 

Some qualifying information I'll ask before I start spilling out my way of doing this:

  1. Does the API endpoint use ArcGIS or is it an ArcGIS Online feature service you're trying to access? If yes, then it makes things easier, if no, it doesn't mean it's not possible!
  2. How is the geometry returned from the API? It is in the rings: [] format or another format?
  3. Are you wanting to transfer and create Points, Lines, or Polygons?

Those are the questions I have for you so far, if you're able to answer these then I can surely get something sorted that should point you in the right direction, I'm mostly familiar with moving ArcGIS Online information between environments, but it's not impossible to format data similarly if it's in a different projection or format.

Cody

IB3
by
Regular Contributor

The API endpoint is external to ArcGIS and can be accessed via the following link:
https://ruimte.omgevingswet.overheid.nl/ruimtelijke-plannen/api/opvragen/v4/

(I have an API key that allows me to connect to it)

The data is provided in JSON format, with geometries embedded as GeoJSON and plan texts in XHTML.

Yes — I intend to transfer and create Points, Lines, and Polygons from the data.

0 Kudos
CalvinHarmin
Frequent Contributor

Are you using Python to do the API calls and get the JSON response?

0 Kudos
IB3
by
Regular Contributor

I tried both Python and FME. 

0 Kudos