Requests API limit

Good afternoon
My name is Daniela Bertani and I am collaborating on a research project from the Green Tech Innovation company about the prediction of forest fires. In the project we need to obtain the coordinates of the road closest to the heat points (possible fires) previously obtained and for that I have been using the API managed by OpenStreetMap to make requests for these coordinates.
The main problem, being a research project, is that I am working with 4 million data of which I need the closest road and when trying to process it at a certain point it starts giving me an error when trying to connect with the API.
I would like to know what is the maximum number of requests that can be made or if there is a way for all my requests to be processed

Beforehand thank you very much

For requesting so much data you shouldn’t use API of openstreetmap.org. This API is meant for editing purposes. It’s not suitable for querying a lot of data.

Instead please check Overpass API - OpenStreetMap Wiki

http://overpass-turbo.eu/ is useful website for testing your queries.

In your usecase it might be possible to download data extract and process it offline without live API.

2 Likes

With 4 million points public instance of Overpass Turbo may also exceed usage limits.

For “I need the closest road” downloading data and processing it locally may be needed (and much faster!)

1 Like

(just to reiterate a point made above)

If you download it locally and process it yourself, as many as you like.

The software that is used when you type things in the search box on the OSM website is Nominatim. Depending on exactly what you want to do, you could install a local version of that to search for things. Alternatively, it might be easier to load the data from OSM that you want (e.g. roads, but not cowsheds, fences, memorials, and lots of other things) into a spatial database and search** that.

** that’s just a link to a random documentation page, but if you think about what you want I bet that you’ll find that someone has already asked the question somewhere like here.

1 Like

Are you working in 1 country only? You can load a smaller national, or regional, excerpt into a database system. Planet.osm - OpenStreetMap Wiki