pelias / polylines

Pelias import pipeline for polyline (road network) data.
MIT License
17 stars 25 forks source link

easier valhalla setup #268

Open nilsnolde opened 2 years ago

nilsnolde commented 2 years ago

just wanted to share 2-3 lines for generating polylines, in case you wanna include it in your wiki:

# first create the graph
docker run --rm -dt --name valhalla_pelias -v $PWD/data:/custom_files --user $(id -u):$(id -g) -e build_tar=False -e path_extension=openstreetmap -e serve_tiles=False -e tile_urls=https://download.geofabrik.de/europe/germany-latest.osm.pbf gisops/valhalla:latest
# then export the edges from there
mkdir data/polylines
docker run --rm -it --name valhalla_pelias -v $PWD/data:/custom_files --user $(id -u):$(id -g) --entrypoint /bin/bash gisops/valhalla:latest -c "valhalla_export_edges /custom_files/openstreetmap/valhalla.json > /custom_files/polylines/germany_polylines.sv0"

docs for the image: https://github.com/gis-ops/docker-valhalla