Skip to content

API and libraries for generating travelsheds from OSM & GTFS data

License

Notifications You must be signed in to change notification settings

levareg/geotrellis-transit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoTrellis Transit

GeoTrellis Transit is a data loader and set of web services run in an embedded Jetty server that answer questions about travel times and transit sheds. The project also includes a demo client application that hits these endpoints, and running example of which can be found at transit.geotrellis.com.

This project was done in collaboration with TechImpact and with support from the William Penn Foundation.

To generate 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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.1%
  • Scala 25.1%
  • CSS 10.1%
  • HTML 3.1%
  • Shell 1.6%