library ratp
A little crawler/sdk for retrieve in real time information about transport in Paris
lyrixx/ratp
A little crawler/sdk for retrieve in real time information about transport in Paris
- Saturday, October 24, 2015
- by lyrixx
- Repository
- 0 Watchers
- 17 Stars
- 90 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Ratp SDK
, (*1)
This repository contains a small library to consume the RATP REST web service
(huhu), (*2)
Usage, (*3)
$api = new Lyrixx\Ratp\Api();
$stop = array(
array('line' => '138', 'stop' => 'General Leclerc-Victor Hugo', 'type' => $api::TYPE_BUS),
);
$stops = $api->getStops($stop);
$stops[0]->getName(); // 'General Leclerc-Victor Hugo'
$stops[0]->getLine(); // '138'
$stops[0]->getType(); // 'metro'
$direction = $stops[0]->getDirection('Ermont-Eaubonne RER.');
foreach($direction->getSchedule() as $time) {
echo $time; // '11 mn';
}
dev-master
9999999-dev
A little crawler/sdk for retrieve in real time information about transport in Paris
Sources
Download
MIT
The Requires
The Development Requires
v1.0.0
1.0.0.0
A little crawler/sdk for retrieve in real time information about transport in Paris
Sources
Download
MIT
The Requires
The Development Requires