Skip to content

Commit

Permalink
//fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Grimaud committed Apr 10, 2016
1 parent 89799b7 commit 9149a5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Real time information about road traffic on the Paris beltway.
## Usage

```
compose require pgrimaud/sytadin
composer require pgrimaud/sytadin
```

```php
Expand All @@ -33,24 +33,24 @@ foreach ($route->getSections() as $section) {
echo $section->getTime() . ' (ref :' . $section->getTimeReference() . ')' . PHP_EOL;
}
//orleans->italie
//6 (ref : 4)
//8 (ref :4)
//italie->bercy
//4 (ref : 2)
//4 (ref :2)

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

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

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

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

## Gates available

Expand Down

0 comments on commit 9149a5d

Please sign in to comment.