OjpSdk

constructor(baseUrl: String, endpoint: String, requesterReference: String, httpHeaders: HashMap<String, String> = hashMapOf(), defaultTimeZone: ZoneId = ZoneId.of("Europe/Zurich"))

Parameters

baseUrl

The url where the SDK shall point to do the OJP requests ex: https://api.opentransportdata.swiss/

endpoint

The specific endpoint on the baseUrl to request ex: ojp20 => https://api.opentransportdata.swiss/ojp20

requesterReference

The reference for requests to help tracking on the OJP backend

httpHeaders

Define custom http headers ex. key: "Authorization" value: "Bearer xyz"

defaultTimeZone

Set the timeZone you want the dateTimes to be parsed at, default is "Europe/Zurich"