Public transport fallback
Permissions:
update_product
In the Public transport fallback section of the tenant settings of a product, a Public Transport Fallback URI template can be predefined.
This is a deep link to a website from a public transport provider in the product area, for example, the corresponding provider itself. If that provider has a web form for public transport requests, it can be prefilled with data from the ride request.
If there is a ride request and no vehicle is available, the user can be redirected to the prefilled form as an easy way to see public transport alternatives.
For better readability, this input can be structured across multiple lines. On generation, all lines are concatenated into one.
https://pickup.now\n?latitude=%{origin_lat}\n&longitude=%{origin_lng}\nThis is rendered as:
https://pickup.now?latitude=50.104558&longitude=8.649113
The following placeholders can be used:
| Placeholder | Example | Description |
|---|---|---|
| %{destination_lat} | 50.104558 | Geographical latitude of requested destination |
| %{destination_lng} | 8.649113 | Geographical longitude of requested destination |
| %{destination_location_name} | DB Office Center | Location name of requested destination |
| %{destination_street} | Grand Central Place 77 | Street of requested destination |
| %{destination_time_iso8601} | 2019-07-19T14:54:26Z | Requested time of shuttle_departure in ISO8601 format |
| %{origin_lat} | 50.10455 | Geographical latitude of requested origin |
| %{origin_lng} | 8.649113 | Geographical longitude of requested origin |
| %{origin_location_name} | Frankfurt Main Station | Location name of requested origin |
| %{origin_street} | Main Street 12 | Street of requested origin |
| %{origin_time_iso8601} | 2019-07-19T14:54:26Z | Requested time of shuttle-arrival in ISO8601 format |
| %{requested_time_iso8601} | 2019-07-19T14:54:26Z | Requested time in ISO8601 format (might be used for pickup/arrival) |
| %{requested_time_type} | origin | The context of the requested time (can either be ‘origin’ or ‘destination’) |
| %{requested_time_type_arrival_or_depature} | arrival | Same meaning as ‘requested_time_type’ but with ‘arrival’ or ‘departure’ instead of ‘origin’ and ‘destination’. |