2017 © Pedro PelĂĄez
 

library ratp

A little crawler/sdk for retrieve in real time information about transport in Paris

image

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

The README.md

Ratp SDK

SensioLabsInsight Build Status, (*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'; }

The Versions

24/10 2015

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

16/10 2015

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