OpendataCH / Transport

Swiss public transport API
http://transport.opendata.ch/
MIT License
241 stars 50 forks source link

Set internal timeout to 10s #174

Closed Kleisli closed 6 years ago

Kleisli commented 6 years ago

Because Requests with one or more via stations can take more than 5 seconds. e.g. https://transport.opendata.ch/v1/connections?from=8500010&to=8505300&time=06%3A00&date=31.07.2017&direct=0&limit=6&via%5B%5D=8509000&via%5B%5D=8509369

fabian commented 6 years ago

You can actually set the timeout in the config.php by creating a Buzz $client with a custom timeout setting, have a look at the config.php we use for transport.opendata.ch as an example.