OpenJourneyPlanner (OJP) API
Contact Info
- Leonard Ehrenfried, mail@leonard.io
Documentation
This sandbox feature implements part of the OpenJourneyPlanner API which is a standard defined by CEN, the European Committee for Standardization.
The following request types are supported:
StopEventRequestTripRequest
To enable this turn on OjpApi as a feature in otp-config.json.
Configuration
This feature allows a small number of config options. To change the configuration, add the
following to router-config.json.
Example configuration
Overview
| Config Parameter | Type | Summary | Req./Opt. | Default Value | Since |
|---|---|---|---|---|---|
| hardcodedInputFeedId | string |
The hardcoded feedId to add to all input ids. | Optional | 2.9 | |
| hideFeedId | boolean |
Hide the feed id in all API output, and add it to input ids. | Optional | false |
2.9 |
Details
hardcodedInputFeedId
Since version: 2.9 ∙ Type: string ∙ Cardinality: Optional
Path: /ojpApi
The hardcoded feedId to add to all input ids.
Only turn this feature on if you have unique ids across all feeds, without the feedId prefix and hideFeedId is set to true.`
hideFeedId
Since version: 2.9 ∙ Type: boolean ∙ Cardinality: Optional ∙ Default value: false
Path: /ojpApi
Hide the feed id in all API output, and add it to input ids.
Only turn this feature on if you have unique ids across all feeds, without the feedId prefix.