tilezen/transport-spider

Name: transport-spider

Owner: Tilezen

Description: Utility to walk networks of public transport relations and produce graphics.

Created: 2016-08-10 20:02:46.0

Updated: 2017-05-04 18:11:30.0

Pushed: 2016-08-10 20:03:59.0

Homepage: null

Size: 7

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Transport Spider

This is a little Ruby script to generate graphics showing the relationships between OpenStreetMap transport / transit related objects.

What you need

You need graphviz installed, as Transport Spider uses that to generate PDFs. Transport spider is written in Ruby, so needs that and the package manager Bundler installed.

After that, run bundle install in the source directory to complete the installation.

How to run it

Type make. If you want to use a different Overpass server, then set that using make OVERPASS_URL=http://localhost/interpreter, or whatever your Overpass server is called. Make sure to include the full URL to the interpreter.

How it works

Each input is a pair of type,id which give the OSM type and ID of a station. For example, Paddington Station, London, UK is OSM way number 302026559, so paddington.input contains way,302026559.

The Transport Spider downloads that, and looks for relations using it which are part of the public transport schema and follows the “web” of connections until it finds transit lines.

More detail on the procedure can be found in the blog post.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.