https://github.com/ddworken/wmatadirectionapi
A python program that uses the pyWMATA library to provide a RESTful route finding API for the Washington Metropolitan Area Rail Lines.
https://github.com/ddworken/wmatadirectionapi
Last synced: 12 months ago
JSON representation
A python program that uses the pyWMATA library to provide a RESTful route finding API for the Washington Metropolitan Area Rail Lines.
- Host: GitHub
- URL: https://github.com/ddworken/wmatadirectionapi
- Owner: ddworken
- License: gpl-2.0
- Created: 2015-03-06T03:13:50.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-06T03:48:04.000Z (about 11 years ago)
- Last Synced: 2025-01-17T19:51:24.143Z (over 1 year ago)
- Language: Python
- Size: 199 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WMATADirectionAPI
A python program that uses the pyWMATA library to provide a RESTful route finding API for the Washington Metropolitan Area Rail Lines.
#Example
Running
```bash
curl localhost:80/WMATA/route/C13/A04/
```
and
``` bash
curl localhost:80/WMATA/route/King/Woodley/
```
both return:
```
{
"Start": "King Street (Start towards Fort Totten)",
"Transfer": "Gallery Place (Transfer towards Shady Grove)"
"End": "Woodley Park Zoo (Exit)",
}
```