Skip to content
caywood edited this page Jan 26, 2013 · 19 revisions

Transit Near Me

Transit Near Me is a web application that lets users find available transit options near their location.

TNM's backend is written in Python and built using the Django web application framework. It exposes a JSON-based API that allows for querying of transit options near a location along with real-time predictions when available. It also includes a client that uses the Leaflet mapping library and incorporates jQuery Mobile for presentation on mobile devices.

Requirements

TNM is built on top of GeoDjango, a set of extensions to Django that allow for easy presentation of geospatial data. It requires a database with geospatial extensions, such as PostgreSQL with PostGIS. For specific information on setting up a PostgreSQL/PostGIS spatial database for use with Transit Near Me, see instructions here.

Installation

See installation instructions here.

See configuration options here.

Running

After installation and configuration, you will only need to do the following.

Data

Transit Near Me is able to import transit data provided in the General Transit Feed Specification (GTFS) format. Numerous transit agencies make their data publicly available in this format, which incorporates route, stop, and schedule information.

Additionally, TNM has the ability to connect to transit agency APIs in order to get real-time bus and train wait time predictions for stops. TNM source includes support for several existing APIs and has a pluggable framework for writing custom API readers.

Some problems with the Washington Metro (WMATA) APIs, which TNM had to overcome, are listed in this document.

See data import instructions here.

API

See API documentation here.

Clone this wiki locally