This project is done as a part of a master thesis.
The purpose of the program is to compare routes (shortest paths) returned from Google and Mapquest services and from locally stored OSM data by using Pgrouting.
For defined start-end location pairs the program gets routes from Google, Mapquest and Pgrouting. Then it calculates the differences in geometry, driving time and distance. Route geometry and difference geometry are written to geojson files, and driving time and distance are written to text file.
Guide:
-
Get OSM data in .osm format
-
Move .osm file to input_data directory
-
Install Postgresql, Postgis and Pgrouting (http://pgrouting.org/documentation.html) and create database with those extensions
-
Install osm2pgrouting (http://pgrouting.org/docs/tools/osm2pgrouting.html)
-
Import osm data to the database by using osm2pgrouting
-
Import osm restrictions data to database using /main/osmrestrictions2pgrouting.py
-
Get your Google and Mapquest api keys
-
Fill in the config.txt file in /main
-
Fill in locations.txt file for desired routes
-
Execute the program by running "python main.py" in terminal in /main dir
-
When exectuion is done, view output files in /output_data dir