Skip to content

Calculate shortest path between two sets of coordinates in an OSM file using Boost Graph library

License

Notifications You must be signed in to change notification settings

ZoltanDalmadi/osm-routing-bgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Calculate shortest path between two sets of coordinates in an OSM file using Boost Graph library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published