NOTE: This is an archived version of the original canaltp/navitia-bundle package
- php5
- composer
# app/AppKernel.php
[...]
new CanalTP\NavitiaBundle\CanalTPNavitiaBundle(),
[...]
composer require "canaltp/navitia-bundle"
# app/config.yml
canal_tp_navitia:
configuration:
url: "http://api.navitia.io"
token: YOUR_TOKEN
format: object
$query = array(
'api' => 'coverage',
'parameters' => [
'region' => 'centre'
]
);
$coverages = $this->get('canal_tp.navitia')->call($query);
You can use Navitia Profiler to see all request in your profiler.
# app/AppKernel.php
[...]
new CanalTP\NavitiaProfilerBundle\NavitiaProfilerBundle(),
[...]
composer require "canaltp/navitia-profiler-bundle"
canal_tp.navitia:
[...]
arguments: ['@navitia_profiler']
[...]
- Rémy Abi-khalil https://github.com/netmisa
- Julien Maulny https://github.com/alcalyn
- Ludovic Roche https://github.com/lrocheWB