Skip to content
Set of scripts to enhance current osm-qa-tiles with relations (and more?)
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Playing in this repo before moving to osmlab...?

Some scripts to automate the extraction of turn restrictions (and more?) from the planet pbf file and then join with the latest osm-qa-tiles.

Originally from this gist:


Each script is numbered to run in order. First, wget the latest planet file and the osm-qa-tiles:

$ wget
$ wget

Then, filter the planet file for relevant restrictions (~ 10 minutes ):

$ ./  

Now run the extract script to turn turn-restrictions into GeoJSON (~ 1 minute ):

$ ./

Run tippecanoe to create the turn restrictions mbtiles file ( ~ 2 minutes ):

$ ./

Finally, run tile-join to join the turn restriction tiles with osm-qa-tiles, this can take some time.

$ ./

Ultimately, you'll get this file: osm-qa-with-tr.mbtiles Now you can feed this into tile-reduce for further analysis.

You can’t perform that action at this time.