GIScience / ohsome-api

API for analysing OpenStreetMap history data
https://api.ohsome.org
GNU Affero General Public License v3.0
45 stars 7 forks source link

Add a new boundary option to search by area (way or relation) id #315

Open Robot8A opened 10 months ago

Robot8A commented 10 months ago

Use Case Description

E.g. Looking for elements inside a specific administrative boundary, the relation id would be given

Request Description

Add a new boundary option, where a search by area (either way or relation id) is possible. The user would give the area ids, and the API would return the elements inside it.

Additional Information

-

Hagellach37 commented 10 months ago

Hey @Robot8A , thanks for reaching out here and flagging this potential enhancement. We will discuss with our team how feasible this change is within the current ohsome API.

You might already know the ohsome Dashboard which let's you query OSM boundaries up to admin level 7 and 8.

You will note that this URL already contains the OSM-ID: 285864

https://dashboard.ohsome.org/#backend=ohsomeApi&groupBy=none&time=2007-10-08T00%3A00%3A00Z%2F2023-10-22T20%3A00Z%2FP1M&key=natural&value=tree&types=node&measure=count&adminids=-285864

--> https://www.openstreetmap.org/relation/285864

Let us know if this is already helpful for you.