Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a semi-remote-api-client for wmata feeds for washington, dc
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
data
scripts
test
Makefile
README.md
index.js
package.json
wmata-client.js Browserify
wmata-client.min.js

README.md

wmata-client

An alternative client for WMATA data.

The goal is to make WMATA's API something that you could use without worrying about constructed Mashery API key limits, and that's way faster and more convenient.

how

The client is very limited thus far. It refactors things that should not be on the server side into things that are not on the server side.

// find a rail stop near a lat, lon
client.rail.findStop([-77.03192710876465,38.91412709994089]);

// and an entrance
client.rail.findEntrance([-77.03192710876465,38.91412709994089]);

// and a bus stop
client.bus.findStop([-77.03192710876465,38.91412709994089]);

Stop-finding is based on a static export of the station data and sphere-knn.

Something went wrong with that request. Please try again.