承接 pgrimaud/sytadin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pgrimaud/sytadin

Composer 安装命令:

composer require pgrimaud/sytadin

包简介

Real time information about road traffic in Paris

README 文档

README

Packagist Build Status

Real time information about road traffic on the Paris beltway.

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.

Gates available

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

Copyright

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

统计信息

  • 总下载量: 696
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固