a client for buses and trains
Want to see pretty graphs? Log in now!
npm install wmata-client
|4||downloads in the last week|
|9||downloads in the last month|
|Last Published By|
|Version||0.0.1 last updated 10 months ago|
|Dependencies||sphere-knn, brfs, stringify-object|
An alternative client for WMATA data.
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.