/osrm-tag-rewriter

Re-writes multiple deprecated but still present OpenStreetMap tags for routing engines

Primary LanguageC++MIT LicenseMIT

osrm-tag-rewriter

Rewrites OpenStreetMap tags for example from motorway junction nodes to its ramps. Mainly for easier handling in our routing engine.

Continuous Integration

Building

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 .

Using Mason

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 .

Running

./osrm-tag-rewriter in.osm.pbf out.osm.pbf

Tests

See the tests directory.

pushd tests
./check.sh
popd

Rewriters

Destination Tags

Rewrites OpenStreetMap exit_to= Node tags on highway=motorway_junction to destination= tags on the adjacent way when possible to do so without ambiguity.

Exit Numbers

Rewrites OpenStreetMap ref= Node tags on highway=motorway_junction to junction:ref= tags on the adjacent way when possible to do so without ambiguity.

License

Copyright © 2017 Mapbox

Distributed under the MIT License (MIT).