Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grasmash/bart-api-php-sdk
Provides a PHP SDK for the BART API
https://github.com/grasmash/bart-api-php-sdk
Last synced: 18 days ago
JSON representation
Provides a PHP SDK for the BART API
- Host: GitHub
- URL: https://github.com/grasmash/bart-api-php-sdk
- Owner: grasmash
- License: gpl-2.0
- Created: 2013-07-23T19:19:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-23T19:28:28.000Z (over 11 years ago)
- Last Synced: 2024-10-25T16:11:00.622Z (2 months ago)
- Language: PHP
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
BART PHP SDK
================Provides a PHP SDK for the [BART API](http://www.bart.gov/schedules/developers/api.aspx).
## Usage
### Instantiating a connection object.
Before making requests to BART API, you need to instatiate a bart object, which
will verify your API key and return the BART API version.require_once("bart.php");
$key = 'yourAPIkey';
$bart = new Bart($key);
print 'Using BART API version ' . $bart->version;### Real Time Estimates
// All stations.
$rte_data = $bart->getRealTimeEstimate();// Richmond station.
$rte_data = $bart->getRealTimeEstimate('rich');