Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Swiss Public Transport documentation #36015

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion source/_integrations/swiss_public_transport.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ The Swiss public transport integration will give you the next three departure ti

The [Swiss public transport API](https://transport.opendata.ch/) only allows 1000 requests per 24 hours. The default polling rate is set to `90s`, which is just enough for one connection polling continuously. If more entries are needed, consider [defining a custom polling interval](#defining-a-custom-polling-interval) to reduce the amount of requests.

The [Stationboard](https://transport.opendata.ch/examples/stationboard.html) website can help to determine the exact name of the start and the end station.
{% configuration_basic %}
Start station:
description: "The departure station for the start of the connection (e.g., 'Zürich HB')"
End station:
description: "The arrival station for the end of the connection (e.g., 'Geneva')"
Via stations:
description: "List of up to 5 via stations (e.g., 'Bern, Lausanne')"
{% endconfiguration_basic %}

Use the [Stationboard](https://transport.opendata.ch/examples/stationboard.html) to find exact station names.

{% include integrations/config_flow.md %}

Expand All @@ -43,3 +52,9 @@ Fetch the connections for a specific instance.
## Defining a custom polling interval

{% include common-tasks/define_custom_polling.md %}

## Remove integration

This integration follows standard integration removal, no extra steps are required.

{% include integrations/remove_device_service.md %}