Skip to content

API and libraries for generating travelsheds from OSM & GTFS data

Notifications You must be signed in to change notification settings

mtedeschi/geotrellis-transit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoTrellis Transit

API and libraries for generating travelsheds from OSM & GTFS data.

The 'buildgraph' command, along with the appropriate json config file, will create serialized graph files that represent a geotrellis.network.graph.TransitGraph object and related information:

./sbt "run buildgraph geotrellis-transit.json"

where the configuration json looks like this:

{
    "loader": {
        "gtfs": [
            {
                "name": "bus",
                "path": "/var/data/philly/gtfs/google_bus" 
            },
            {
                "name": "train",
                "path": "/var/data/philly/gtfs/google_rail"
            }
        ],
        "osm": [
            {
                "name": "Philadelphia",
                "path": "/var/data/philly/osm/philadelphia.osm"
            }
        ]
    },
    "graph": {
        "data": "/var/data/transit/graph/"
    }
}

The data can then be used with the 'server' command to start up a GeoTrellis server that exposes transit information API endpoints.

./sbt "run server geotrellis-transit.json"

After running the server, you can go to http://localhost:9999/ for an example client application.

About

API and libraries for generating travelsheds from OSM & GTFS data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.6%
  • Scala 14.0%
  • CSS 11.6%
  • Shell 1.8%