Sunday, 12 June 2022

How can I create an OSRM file from geojson data?

I have a geojson datafile containing highway=footway paths, and I'd like to use OSRM to find routings between multiple points (i.e., not just the most efficient path from A to B, but something like the travelling salesman).

From the OSRM documentation, I see that to use custom data rather than data from OpenStreetMap I would need an OSRM file, which I can apparently make "by running the OSRM binaries [shipped] in node_modules/osrm/lib/binding/ and default profiles".

I find that very vague and I don't know how to proceed. The documentation linked above refers to the OSRM-backend documentation, but I didn't find anything related to creating OSRM files there. I got the node_modules/osrm directory through npm, but there's nothing in the osrm/lib/binding directory...

How can I proceed to use my data for OSRM routing? Or if there is an easier solution to what I'm trying to implement, what would it be?



from How can I create an OSRM file from geojson data?

No comments:

Post a Comment