ohsome-api icon indicating copy to clipboard operation
ohsome-api copied to clipboard

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

Open Robot8A opened this issue 1 year ago • 1 comments

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

Robot8A avatar Oct 24 '23 09:10 Robot8A

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.

Hagellach37 avatar Nov 03 '23 19:11 Hagellach37