Need help with graphserver?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

bmander
121 Stars 59 Forks Other 932 Commits 21 Opened issues

Description

An open source multimodal trip planning engine

Services available

!
?

Need anything else?

Contributors list

# 221,947
C
plannin...
transpo...
CSS
465 commits
# 355,338
Java
stream
twitter...
C
21 commits
# 730,246
C
Python
6 commits
# 81,946
Firefox
TypeScr...
zero-co...
reactjs
3 commits
# 79,743
Java
gtfs
Groovy
plannin...
2 commits

GRAPHSERVER

OVERVIEW

Graphserver is a multi-modal trip planner. Graphserver supports transit modes through GTFS, and street-based modes through OSM.

The core graphserver library has Python bindings which provide easy construction, storage, and analysis of graph objects.

Learn more about Graphserver at http://graphserver.github.com/graphserver/

INSTALLATION

Prerequisites

Python 2.6+ (or 2.5+ for only graphserver.core)

Build

$ cd pygs
$ sudo python2.6 setup.py install

setup.py installs several executables. On debian these go into /usr/local/bin/. On Mac OS X, these go into /Library/Frameworks/Python.framework/Versions/2.6/bin/

Test a successful installation:

$ python2.6 -c "import graphserver.core; graphserver.core.Graph(); print 'Graphserver can be imported'"

Run the test harness (in verbose mode):

$ python2.6 setup.py nosetests -v

TOOLS

gsgtfsdbcompile

Create a GTFSDatabase (sqlite3 db) from a GTFS zip file $ gsgtfsdbcompile googletransit.zip googletransit.gtfsdb

gsosmdbcompile

Create a OSM database (sqlite3 db) from an OSM xml file $ gsosmdbcompile map.osm map.osmdb

gs_new

Create a new graph file $ gs_new foobar.gdb

gsimportosm

Import an OSM database to a graph file $ gsimportosm foobar.gdb map.osmdb

gsimportgtfs

Import a GTFS database to a graph file $ gsimportgtfs foobar.gdb google_transit.gtfsdb

gslinkosm_gtfs

Link OSM vertices to GTFS vertices to enable multimodal trip planning $ gslinkosmgtfs foobar.gdb map.osmdb googletransit.gtfsdb

gs_osmfilter: run one of the filter classes from graphserver.ext.osm.osmfilters on an OSMDB instance

$ gs_osmfilter    [ ...]

Building just the C .dll/.so

Provides the core DLL for routing. It is not necessary to manually build this if using the Python bindings.

Build: $ cd core $ make

Install: $ cd core $ sudo make install

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.