Dear ohsome team,
I tried to replicate the codes in the Jupyter notebook with some other cities' geojson files but failed to succeed. Are there any specific requirements for the data in geojson format?
I tried two ways to download these cities' boundary geojson files:
-
through overpass directly https://overpass-turbo.eu/ by replacing the city name and download geojson. I did not modify the downloaded geojson file. An example of such file is attached in the zip.
-
through osmdata package in R. I downloaded the file through the following line and then use st_write to export as geojson. I also attached an example in the zip.
library(osmdata)
library(sf)
boundary = getbb('Algiers, Algeria', featuretype = "city", format_out = "sf_polygon")$multipolygon
st_write(boundary, 'path/Algeria_osmdata.geojson')
These generated geojson files are valid as I can map them, but when passed into the request, creates an error saying 422 Client Error: Unprocessable Entity for url: https://api.quality.ohsome.org/v1/indicators/mapping-saturation.
If there is another programming way to download cities' boundary geojson files for ohsome API, I would appreciate an example because the approaches above cannot generate the geojson files acceptable to ohsome API.
Thank you very much.
Algiers.zip
Dear ohsome team,
I tried to replicate the codes in the Jupyter notebook with some other cities' geojson files but failed to succeed. Are there any specific requirements for the data in geojson format?
I tried two ways to download these cities' boundary geojson files:
through overpass directly https://overpass-turbo.eu/ by replacing the city name and download geojson. I did not modify the downloaded geojson file. An example of such file is attached in the zip.
through
osmdatapackage in R. I downloaded the file through the following line and then use st_write to export as geojson. I also attached an example in the zip.These generated geojson files are valid as I can map them, but when passed into the request, creates an error saying
422 Client Error: Unprocessable Entity for url: https://api.quality.ohsome.org/v1/indicators/mapping-saturation.If there is another programming way to download cities' boundary geojson files for ohsome API, I would appreciate an example because the approaches above cannot generate the geojson files acceptable to ohsome API.
Thank you very much.
Algiers.zip