Skip to content

This is a tool for route planning with OpenStreetMap. To use it, you need to provide an OpenStreetMap XML (*.osm) and specify the start and end point. The program then calculates the shortest path using Dijkstra's algorithm and visualizes the result.

License

Notifications You must be signed in to change notification settings

xichen-de/RoutePlanner

Repository files navigation

Route Planner

Description

CI

This is a tool for route planning with OpenStreetMap. To use it, you need to provide an OpenStreetMap XML (*.osm) and specify the start and end point. The program then calculates the shortest path using Dijkstra's algorithm and visualizes the result.

An example will be: start point (0.2, 0.2), end point (0.8, 0.8)

map

Usage

Dependencies

  • cmake >= 3.11.3
  • make >= 4.1
  • gcc/g++ >= 7.4.0
  • IO2D

Cloning

git clone https://github.com/xichen-de/RoutePlanner.git

Compiling

To compile the project, first, create a build directory and change to that directory:

mkdir build && cd build

From within the build directory, then run cmake and make as follows:

cmake ..
make

Running

The executable will be placed in the build directory. From within build, you can run the project as follows:

./OSM_A_star_search

Or to specify a map file:

./OSM_A_star_search -f ../<your_osm_file.osm>

Testing

The testing executable is also placed in the build directory. From within build, you can run the unit tests as follows:

./test

About

This is a tool for route planning with OpenStreetMap. To use it, you need to provide an OpenStreetMap XML (*.osm) and specify the start and end point. The program then calculates the shortest path using Dijkstra's algorithm and visualizes the result.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published