Skip to content

Latest commit

 

History

History
93 lines (66 loc) · 5.99 KB

URLs.md

File metadata and controls

93 lines (66 loc) · 5.99 KB

Application URLs

OJP-Demo URL: https://opentdatach.github.io/ojp-demo-app/


1. Journey Search

Query Parameters

Param Example (decoded) Description
lang de, en, fr or it Choose the ISO language in which the OJP repsonse will be deliverd, default is the browser locale.
from 8503000 for Zürich HB or 47.378173,8.540264 for same location as coordinates. DiDok id or Latitude,Longitude coordinates.
to see from
via 47.044250,8.308174;47.163056,8.687139 List of Latitude,Longitude coordinates separated by semi-colon ;.
mode_types monomodal Mono-, multi- modal journey type switcher. List of mode types: monomodal, mode_at_start, mode_at_end, mode_at_start_end. Multiple values (journeys with via points) are separated by semi-colon ;. Number of the values is equal with number of via parameters + 1
transport_modes public_transport The MOT used, list of possible values": public_transport, walking cycle, car_self_driving, bicycle_rental, escooter_rental, car_sharing. All values, except public_transport will set ItModesToCover filter in the OJPTripRequest calls. Multiple values (joruneys with via points) are separated by semi-colon ;. Number of the values is equal with number of via parameters + 1
trip_datetime Trip datetime in yyyy-MM-dd HH:mm format 2022-08-01 10:00
stage prod or test To specify the OJP API backend.
do_search false or true If true the search will be performed after the endpoints information is init-ed. Default is false.

Examples

Mono-modal

Example OJP 1 OJP 2 Comments
PublicTransport Bern - Zürich Bern - Zürich
PublicTransport, Via Bern - Luzern - Zürich Bern - Luzern - Zürich
PublicTransport, Boat Thun - Spiez Thun - Spiez
ATZ (car transport) Kandersteg - Goppenestein Kandersteg - Goppenestein
Coords - Coords Croy-Romainmôtier to Glis Croy to Glis
Own Car Bern - Zürich Spiez - Bern
Own Car + ATZ train N / A Spiez - Brig
Own Car + Water Ferry N / A Horgen - Meilen

Multi-modal

Example OJP 1 OJP 2 Comments
Own Bycicle + Public Transport Bern N / A
Shared Scooter + Public Transport Bern N / A

Mock TEST URLs

How To

Examples

URL Notes
https://tools.odpch.ch/ojp-demo-v2/search?gist=86514397dae2038d7024f2228be476d7 TR with Infeasable, Unplanned status
https://tools.odpch.ch/ojp-demo-v2/search?gist=2f9f3554a3f5b7c65ce76f04406319bb TR with Deviation status
https://tools.odpch.ch/ojp-demo-v2/search?gist=1dff55df2c5b3167f59c093261ff4f54 TR with Cancelled status
https://tools.odpch.ch/ojp-demo-v2/search?gist=29843eabbeaaa8e73163b0a22b511513 TR with Autoverladezug

2. Station Board

Query Parameters

Param Example (decoded) Description
type arr, dep Station board type, arrivals or departure, default value is dep (departures)
stop_id 8503000 for Zürich HB DiDok valid StopRef ids
day 2022-12-01 for 1.Dec 2022 Day used for the station board; if not given, the current day will be used
time 14:20 Time used for the station board; if not given, the current time will be used

Examples


CHANGELOG

  • Aug 2024 - added lang param
  • Oct 2022 - updated mono-, multi- modal journey examples
  • Sep 2022 - adds Station Board
  • Mar 2022 - adds do_search param
  • Jul 2021 - created this document