2017 © Pedro Peláez
 

library sytadin

Real time information about road traffic in Paris

image

pgrimaud/sytadin

Real time information about road traffic in Paris

  • Tuesday, December 5, 2017
  • by pgrimaud
  • Repository
  • 1 Watchers
  • 4 Stars
  • 664 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Sytadin

Packagist Build Status, (*1)

Real time information about road traffic on the Paris beltway., (*2)

Usage

composer require pgrimaud/sytadin
$api = new \Sytadin\Api();

$parameters = [
    'start' => 'orleans',
    'end' => 'bercy',
    'direction' => $api::DIRECTION_EXTERIOR
];

$api->setParameters($parameters);
$route = $api->getRoute();

echo $route->getStart()->getName() . PHP_EOL;
//orleans

echo $route->getEnd()->getName() . PHP_EOL;
//bercy

foreach ($route->getSections() as $section) {
    echo $section->getStart()->getName() . '->' . $section->getEnd()->getName() . PHP_EOL;
    echo $section->getTime() . ' (ref :' . $section->getTimeReference() . ')' . PHP_EOL;
}
//orleans->italie
//8 (ref :4)
//italie->bercy
//4 (ref :2)

//reference time
echo $route->getTimeReference() . PHP_EOL;
//6

//real time
echo $route->getTime() . PHP_EOL;
//12

//kilometers
echo $route->getKms() . PHP_EOL;
//8

If Time is superior to the TimeReference, it means there is some traffic jams., (*3)

Gates available

foreach (\Sytadin\Gate::listGates() as $gate) {
    echo $gate . PHP_EOL;
}
chapelle
maillot
auteuil
orleans
italie
bercy
bagnolet

No copyright, based & crawled on Sytadin website (http://www.sytadin.fr), (*4)

The Versions

05/12 2017

dev-master

9999999-dev https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Grimaud

05/12 2017

1.2.3

1.2.3.0 https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Grimaud

31/10 2016

1.2.2

1.2.2.0 https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Grimaud

25/10 2016

1.2.1

1.2.1.0 https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Grimaud

08/06 2016

1.2.0

1.2.0.0 https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Grimaud

11/04 2016

1.1.2

1.1.2.0 https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

by Pierre Grimaud

11/04 2016

1.1.1

1.1.1.0 https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

by Pierre Grimaud

10/04 2016

1.1.0

1.1.0.0 https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

by Pierre Grimaud

07/04 2016

1.0.0

1.0.0.0 https://github.com/pgrimaud/sytadin

Real time information about road traffic in Paris

  Sources   Download

MIT

The Requires

 

by Pierre Grimaud