User:Mga geo/osrm

From OpenStreetMap Wiki
Jump to: navigation, search

Routage

Liens

http://project-osrm.org/

http://map.project-osrm.org/?z=13&center=48.154291%2C-1.576023&loc=48.154291%2C-1.576023&loc=48.121643%2C-1.606064&hl=fr&alt=0

https://github.com/Project-OSRM/node-osrm/blob/79d8e1f3b50104cbcca4a5c99a5a2af29f0f9e53/docs/api.md

http://router.project-osrm.org/route/v1/driving/48.154291,-1.576023;48.121643,-1.606064?overview=false&annotations=nodes

http://router.project-osrm.org/trip/v1/driving/48.154291,-1.576023;48.121643,-1.606064?overview=false&steps=true

Installation

  • machine virtuelle Ubuntu 16.04 server

https://github.com/Project-OSRM/osrm-backend/wiki/Building-on-Ubuntu

  sudo apt install build-essential git cmake pkg-config \
    libbz2-dev libstxxl-dev libstxxl1v5 libxml2-dev \
    libzip-dev libboost-all-dev lua5.2 liblua5.2-dev libtbb-dev
  git clone https://github.com/Project-OSRM/osrm-backend.git
  cd osrm-backend
  echo "disk=/tmp/stxxl,10G,syscall" > .stxxl
  mkdir -p build
  cd build
  cmake .. -DCMAKE_BUILD_TYPE=Release
  cmake --build .
  sudo cmake --build . --target install
  • la Bretagne
  wget -O data.osm.pbf http://download.geofabrik.de/europe/france/bretagne-latest.osm.pbf
  osrm-extract data.osm.pbf
  osrm-partition data.osrm
  osrm-customize data.osrm
  osrm-routed --algorithm=MLD data.osrm