Skip to content

Instantly share code, notes, and snippets.

@heffergm
Created January 12, 2018 12:33
Show Gist options
  • Select an option

  • Save heffergm/164fbdd0a4cc60e3398a41cf561ecedc to your computer and use it in GitHub Desktop.

Select an option

Save heffergm/164fbdd0a4cc60e3398a41cf561ecedc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
local_data_dir=valhalla_data
mkdir $local_data_dir && pushd $local_data_dir
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/san-francisco_california.osm.pbf
popd
docker run -h valhalla -v ${PWD}/valhalla_data:/data/valhalla valhalla/docker:ppa-1.4.5 valhalla_build_tiles --config /conf/valhalla.json --input_files /data/valhalla/san-francisco_california.osm.pbf
docker run -h valhalla -p 127.0.0.1:8002:8002 -v ${PWD}/valhalla_data:/data/valhalla valhalla/docker:ppa-1.4.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment