Giter Site home page Giter Site logo

graphserver's Introduction

--== OVERVIEW ==--

Graphserver provides a C implementation of Djikstra's shortest path algorithm.
This algorithm can be used to solve any number of problems, including street
routing, transit routing, network analysis, etc.

The core graphserver library has Python bindings (and deprecated Ruby bindings),
which provide easy construction, storage, and analysis of graph objects.  There
are also a handful of tools designed to work with Open Street Map data and GTFS
transit data.

Related projects: prender, transitfeed, osmosis

--== PYTHON BINDINGS ==--

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/*

  gs_gtfsdb_build: create a GTFSDatabase (sqlite3 db) from a GTFS zip file
  $ gs_gtfsdb_build test/google_transit.zip test/google_transit.zip.gtfsdb

  gs_gtfsdb_inspect: run a query against a GTFSDatabase
  $ gs_gtfsdb_inspect test/google_transit.zip.gtfsdb "select * from agency"

  gs_osmdb_compile: compile an OSMDB from an OSM xml file
  $ (cd test && unzip map.osm.zip)
  $ gs_osmdb_compile test/map.osm test/map.osmdb
  
  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> ...]

  gs_compile_gdb: the a graph compiler; accepts compiled GTFSDatabase(s) and/or a compiled OSMDB as inputs
    # compile only GTFS data
  $ gs_compile_gdb` -g bart.gtfsdb bart.gdb
    # compile an OSM street graph only
  $ gs_compile_gdb -o pygs/test/map.osmdb map.gdb
    # compile GTFS with OSM
  $ gs_compile_gdb -o pygs/test/map.osmdb -g bart.gtfsdb bart_with_streets.gdb
    # compile multiple GTFS files into one graph 
  $ gs_compile_gdb -g A.gtfsdb -g B.gtfsdb -g ... 
   

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):
  user@graphserver/pygs$ python2.6 setup.py nosetests -v

--== 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

--== RUBY BINDINGS (DEPRECATED) ==--

NOTE: These bindings are horribly out of date.  Ruby/C experts only. Patches welcome.

Prerequisites:
Ruby 1.8.5

Build:
$ cd rbgs
Read the README

graphserver's People

Contributors

bmander avatar umidev avatar wlach avatar

Stargazers

 avatar

Watchers

 avatar  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.