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
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.
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.