Code Monkey home page Code Monkey logo

graphserver's Introduction

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

gs_gtfsdb_compile

Create a GTFSDatabase (sqlite3 db) from a GTFS zip file $ gs_gtfsdb_compile google_transit.zip google_transit.gtfsdb

gs_osmdb_compile

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

gs_new

Create a new graph file $ gs_new foobar.gdb

gs_import_osm

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

gs_import_gtfs

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

gs_link_osm_gtfs

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

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

$ gs_osmfilter <Filter Name> <run|rerun|visualize> <osmdb_file> [<filter args> ...]

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

graphserver's People

Contributors

abyrd avatar bmander avatar ninowalker avatar umidev avatar wlach avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.