Good afternoon
I need help or some suggestions regarding a specific task.
I need to work in an offline file because I have sensitive data that cannot be uploaded to the OpenStreetMap database (such as streets of private companies).
My initial idea was the following: make an API where, when receiving a lat and lng vector, I identify which segment is closest to it, and insert it into the way to be considered an intersection and be able to perform routing to obtain distance /duration of that route.
However, currently I have a small problem, when working with “light” files, my API worked normally, but when trying to work with large .osm files (files of, for example, 5-10gb), Node returns an error due to the fact that the file be very big.
I tried to implement a stream solution (reading the file in parts) and I’m having some difficulties.
Would you have any suggestions on the best way to do what I want?