3DBAG API by bbox and coordinate

Hi there, I’m new here.

Project intro
At the moment I am building an application that let’s a user pick a coordinate and area (bbox?), and have the 3DBAG API return all (limit=100) buildings there.
I process the LOD2.2 responses so a user can view it online and download an IFC4 file from it.

GET
Consulting the API 3DBAG API, I have successfully gotten responses for limit=10, limit=80, etc. using for instance https://api.3dbag.nl/collections/pand/items?limit=60

Problem
However… the response is always located in Amersfoort and the buildings do not connect to eachother but rather are selected on basis of an ascending PandID.

2 Questions
1: How do I adjust the URL https://api.3dbag.nl/collections/pand/items?limit=60 to get for instance buildings in for instance The Hague or Amsterdam?
2: How do I adjust the URL https://api.3dbag.nl/collections/pand/items?limit=60 to get only repsonses within a 100mx100m box? I do know “bbox” is a thing, but cannot figure out how to get a succesful response…

Thank you in advance for any help and responses.

Best, Thomas

https://api.3dbag.nl/collections/pand/items?limit=60&bbox=111412.0,560467.6,112512.0,561567.6

Note the bbox query parameter:
bbox=xmin,ymin,xmax,ymax

The values you need to enter for your bounding box (bbox) are map coordinates. The bottom left (min) corner and the top right (max) corner of a box.

You can pick some coordinates to try here.

Subtract 50 from both xmin and ymin, add 50 to xmax and ymax. Now you have a box that is 100m on each side.

If you want download entire towns, you will have to use the pagination (offset) parameter and make multiple queries based on the numberMatched and numberReturned in the json response.

1 like

Hi David,

This has helped a lot. I am now succesfully generating different parts of the country. :slight_smile:
The goal is indeed do generate parts of town that might be more buildings than the max. 100, so I will look into the pagination you mentioned as well.

For now many thanks for your clear answer, best,

Thomas