Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 756 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 756 Bytes

OSM Routing with Boost Graph Library

Prerequisites

boost-graph

libosmium

Build

$ mkdir build
$ cd build
$ cmake ..
$ make

The executable will be in the "dist" directory.

Run

You'll need an osm file, e. g:

$ wget http://reccos.inf.unideb.hu/~norbi/res/debrecen.osm

From the "dist" directory:

$ osm-routing-bgl path/to/osm/file start_lan start_lon target_lat target_lon

Server wrapper

For the server wrapper script you need Python and Flask.

The script handles input coordinates from a single URL (/start_lan-start_lon-target_lan-target_lon), and returns node coordinates in JSON format.