dev-master
9999999-devA profiled route planning application designed for urban environments
MIT
The Requires
- php ^7.1.0
- symfony/yaml dev-master
by Maciej Sławik
navigation city urban route-planning motorcycle bicycle
Wallogit.com
2017 © Pedro Peláez
A profiled route planning application designed for urban environments
The project finds a route well-suited for the requested type of vehicle in an urban environment. It uses PostgreSQL with additional extensions., (*2)
composer require mslwk/route-planner
After cloning the repository download a city extract in .osm file and place it in
vendor/mslwk/route-planner/maps/map.osm, (*3)
Create configs/config.yml file based on configs/config.example.yml, (*4)
The library utilises two PostgreSQL databases to find the best route between two points. One database is a complete set of information from OSM and is used e.g. to find streets which with trams. The second one is pgRouting database which represents a city as a weighted graph and calculates the route., (*5)
Nominatim API is used to find the coordinates between the given addresses. The coordinates are used to find the graph vertices that are closest to the addresses., (*6)
The library supports two shortest-path algorithms (Dijkstra/A*)., (*7)
The route is returned as an array of coordinates., (*8)
The data calculated is a json object., (*9)
##### Example of a successfully calculated route (from JSON API) #####, (*10)
, (*11)
##### Example of a failure (from JSON API) #####, (*12)
, (*13)
The examples show a route calculated using the library and displayed using Google Maps., (*14)
, (*15)
, (*16)
, (*17)
A profiled route planning application designed for urban environments
MIT
navigation city urban route-planning motorcycle bicycle