Skip to content

Instantly share code, notes, and snippets.

@zuo1188
Created October 21, 2017 05:58
Show Gist options
  • Save zuo1188/365d36a1440299177f4cfcdae1106d52 to your computer and use it in GitHub Desktop.
Save zuo1188/365d36a1440299177f4cfcdae1106d52 to your computer and use it in GitHub Desktop.
mac安装osrm_backend:
brew install tbb
brew install libstxxl
brew install lua
cd osrm-backend
mkdir -p build
cd build
cmake ..
cmake --build .
cmake --build . --target install
默认安装到/usr/local下, /usr/local/bin/osrm-extract /usr/local/bin/osrm-contract /usr/local/bin/osrm-datastore /usr/local/bin/osrm-routed
测试:
osrm-extract beijing_china.osm.pbf -p profiles/car.lua
osrm-contract beijing_china.osrm
osrm-routed beijing_china.osrm
curl http://127.0.0.1:5000/route/v1/driving/116.331986,39.898931;116.368893,39.922171?steps=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment