bundesAPI / deutschland

Die wichtigsten APIs Deutschlands in einem Python Paket.
Apache License 2.0
1.23k stars 67 forks source link

Charging stations #78

Open Shruthi-Patil opened 2 years ago

Shruthi-Patil commented 2 years ago

Hi, I would like to extract all the charging stations in Germany. I guess the ladestationen would give me this info. However, I'm not sure what "geometry" should be provided as input here. Also, the URI is localhost. Could you please provide a valid URI?

Thanks

wirthual commented 2 years ago

Hi, here is the repo for the ladestationen.

Here you can find the API description where you should be able to experiment easily with different parmeters.

The direct URL should be this:

https://services6.arcgis.com/6jU7RmJig2Wwo1b0/ArcGIS/rest/services/Ladesaeulenregister/FeatureServer/7

For the geometry you need to provide the JSON of the type you specify:

Available types : esriGeometryEnvelope, esriGeometryPoint, esriGeometryPolyline, esriGeometryPolygon, esriGeometryMultipoint

Here an example URL request which returns some values:

https://services6.arcgis.com/6jU7RmJig2Wwo1b0/ArcGIS/rest/services/Ladesaeulenregister/FeatureServer/7/query?geometry=%7B%20%20%20%22xmin%22%3A%20%20648310.999314399%2C%20%20%20%22ymin%22%3A%205998767.0224341%2C%20%20%20%22xmax%22%3A%201708898.35458854%2C%20%20%20%22ymax%22%3A%207353682.52593813%2C%20%20%20%22spatialReference%22%3A%20%7B%20%20%20%20%20%22wkid%22%3A%203857%20%20%20%7D%20%7D&geometryType=esriGeometryEnvelope&f=json&outFields=%2A&objectIds=42%2C123%2C666&distance=10.0

With the following as geometry: geometryType=esriGeometryEnvelope, geometry={ "xmin": 648310.999314399, "ymin": 5998767.0224341, "xmax": 1708898.35458854, "ymax": 7353682.52593813, "spatialReference": { "wkid": 3857 } }