Ability to specify output file in osrm-extract
Hi,
This would be great to add a -o --output parameter in osrm-extract to specify the path of the output file. Typical use case is to divert a single osm/pbf file into several osrm files (with different routing profiles).
It's currently mandatory to create at least symbolic links to my single osm file to make osrm-extract produce different osrm files. May I have miss some existing stuff regarding this ?
All the best
I was also trying to output different profile at different location using same source file (.osm.pbf). Will this option be available?
@lekhnath Only if you submit a pull-request to implement it.
As @flacombe pointed out, a trivial way to achieve this function is to use symbolic links:
wget http://download.geofabrik.de/antarctica-latest.osm.pbf
ln -s antarctica-latest.osm.pbf antarctica-for-penguins-latest.osm.pbf
osrm-extract -p car.lua antarctica-latest.osm.pbf
osrm-extract -p penguins.lua antarctica-for-penguins-latest.osm.pbf
This would give you antarctica-latest.osrm and antarctica-for-penguins-latest.osrm without needing to copy the .osm.pbf file.
Stale.
Hello @SiarheiFedartsou
You closed this as completed but had anything actually been done yet?
That's right it's stale but it could be a useful improvement anyway.