Rewrites OpenStreetMap tags for example from motorway junction nodes to its ramps. Mainly for easier handling in our routing engine.
A recent libosmium is getting downloaded to third_party
by invoking the ./deps.sh
script.
./deps.sh
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
You can build this project using packages bundled with mason:
./masonize.sh
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_MASON=On
cmake --build .
./osrm-tag-rewriter in.osm.pbf out.osm.pbf
See the tests
directory.
pushd tests
./check.sh
popd
Rewrites OpenStreetMap exit_to=
Node tags on highway=motorway_junction
to destination=
tags on the adjacent way when possible to do so without ambiguity.
- Query for
exit_to
node tags, Bay Area: http://overpass-turbo.eu/s/kEM - Query for
destination
way tags, Bay Area: http://overpass-turbo.eu/s/kEN
Rewrites OpenStreetMap ref=
Node tags on highway=motorway_junction
to junction:ref=
tags on the adjacent way when possible to do so without ambiguity.
Copyright © 2017 Mapbox
Distributed under the MIT License (MIT).