Download, installation, usage
The source code can be downloaded here.
To compile the source code it is necessary to install Google's Protocol Buffers,
SQLite3 software library and the Boost C++ libraries.
Doxygen documentation to the sourcecode can be found here.
Use the makefile with the command make to compile.
Use the command ./Freeway with the following options for execution:
- Synopsis
- ./Freeway -x [ -i ] [ -g ] [ -b | -n ] |
./Freeway -d [ -i ] [ -g ] [ -b | -n ] |
./Freeway -c [ -i ] [ -g ] [ -b | -n ] |
./Freeway -s [ -i ] [ -g ] [ -b | -n ] | [ -p ]
./Freeway -w - Description
- -x
- calculate 10 shortest paths on the time expanded graph where source and target are chosen randomly
- -d
- calculate 10 shortest paths on the time dependent graph where source and target are chosen randomly
- -c
- start the console mode, list of available commands:
quit or exit
expanded-query <source node id> <target node id> <departure time>
dependent-query <source node id> <target node id> <departure time>
expanded-nearest <latitude> <longitude>
dependent-nearest <latitude> <longitude>
benchmark <number of queries> - -s
- start the server and run on time expanded and time dependent graph,
use the file demo.html located in the directory /htdocs as a client to the server,
the server runs by default on http://localhost:8888/,
the port can be changed in the file /htdocs/map.js for the client
and using the option -p for the server - -w
- construct both the time expanded and time dependent graph and store them on the hard disk
- -i <path>
- specify a path to an osm file instead of using the predefined path,
use this option together with -x, -d, -c or -s - -g <path>
- specify a path to an gtfs database insted of using the predefined path,
use this option together with -x, -d, -c or -s - -b <path>
- specify a path to the (protocol buffer) binary data instead of using the predefined path,
use this option together with -x, -d, -c or -s - -n
- force that no binary files are read,
use this option together with -x, -d, -c or -s - -p <port>
- specify a port for the server,
use this option only with -s - Examples
- ./Freeway -s
- starts the server using the default paths and reads both graphs from the hard disk if available
- ./Freeway -s -n
- starts the server using the default paths and does not read read both graphs from the hard disk,
even if they are available,
both graphs are constructed from scratch instead - ./Freeway -s -n -i data/manhattan/osm/map.osm -g data/manhattan/gtfs/gtfs_manhattan.sqlite
-
like the one above but in addition the paths to the osm file and the gtfs database are given,
these are the default paths - ./Freeway -s -p 8889
- starts the server running on port 8889