Open
GraphQL
Inputs
Input types define structured arguments passed to queries and mutations. They group related fields into a single object, useful for complex inputs. Learn more
BikePreferencesInputBicycle routing preferences.
DatedServiceJourneyReferenceIdentifies a specific service journey on a specific service date. Exactly one of the fields must be set.
EstimatedCallFilterInputA collection of selectors for what estimated calls should be included / excluded. At least one of
select or not must be provided. The select is always applied first, then not. If only not is present, the exclude is applied to the existing set of estimated calls.EstimatedCallSelectInputA selector for filter allow-list / exclude-list. At least one field must be provided. An estimated call matches a selector if it matches all fields. Within each field, a call matches if it matches any of the listed values.
InputBannedFilter trips by disallowing lines involving certain elements. If both lines and authorities are specified, only one must be valid for each line to be banned. If a line is both banned and whitelisted, it will be counted as banned.
InputCoordinatesInput type for coordinates in the WGS84 system
InputPlaceIdsInputWhiteListedFilter trips by only allowing lines involving certain elements. If both lines and authorities are specified, only one must be valid for each line to be used. If a line is both banned and whitelisted, it will be counted as banned.
ItineraryFiltersParameters for the OTP Itinerary Filter Chain. These parameters SHOULD be configured on the server side and should not be used by the client. They are made available here to be able to experiment and tune the server.
LocationInput format for specifying a location through either a place reference (id), coordinates or both. If both place and coordinates are provided the place ref will be used if found, coordinates will only be used if place is not known. Alternatively, a serviceJourneyLocation can be used to start the search on-board a vehicle,or pinpoint a boarding on a specific dated service journey to start routing.
ModesInput format for specifying which modes will be allowed for this search. If this element is not present, it will default to accessMode/egressMode/directMode of foot and all transport modes will be allowed.
PassThroughPointDefines one point which the journey must pass through.
PenaltyForStreetModeA combination of street mode and penalty for time and cost.
PointInJourneyPatternReferenceIdentifies a point in a journey pattern by stop location ID, optionally with an aimed departure time for disambiguation.
RelaxCostInputA relax-cost is used to increase the limit when comparing one cost to another cost.
This is used to include more results into the result. A
ratio=2.0 means a path (itinerary)
with twice as high cost as another one, is accepted. A constant=$300 means a "fixed"
constant is added to the limit. A {ratio=1.0, constant=0} is said to be the NORMAL relaxed
cost - the limit is the same as the cost used to calculate the limit. The NORMAL is usually
the default. We can express the RelaxCost as a function f(t) = constant + ratio * t.
f(t)=t is the NORMAL function.ScooterPreferencesInputScooter routing preferences.
ServiceJourneyLocationInputIdentifies a specific dated service journey and a specific point within it.
ServiceJourneyOnServiceDateIdentifies a service journey by service journey ID and service date.
StreetModeDurationInputA combination of street mode and corresponding duration
StreetModesInput format for specifying which modes will be allowed for this search. If this element is not present, it will default to all to foot.
TransitGeneralizedCostFilterParamsTransportModeSlackUsed to specify board and alight slack for a given modes.
TransportModesTriangleFactorsHow much the factors safety, slope and distance are weighted relative to each other when routing bicycle legs. In total all three values need to add up to 1.
TripFilterInputA collection of selectors for what lines/trips should be included in / excluded from search
TripFilterSelectInputA list of selectors for filter allow-list / exclude-list. An empty list means that everything is allowed. A trip/line will match with selectors if it matches with all non-empty lists. The
select is always applied first, then not. If only not not is present, the exclude is applied to the existing set of lines.TripPassThroughViaLocationInputOne of the listed stop locations must be visited on-board a transit vehicle or the journey must
alight or board at the location.
TripViaLocationInputA via-location is used to specifying a location as an intermediate place the router must
route through. The via-location is either a pass-through-location or a visit-via-location.
TripVisitViaLocationInputA visit-via-location is a physical visit to one of the stop locations or coordinates listed. An
on-board visit does not count, the traveler must alight or board at the given stop for it to to
be accepted. To visit a coordinate, the traveler must walk (bike or drive) to the closest point
in the street network from a stop and back to another stop to join the transit network.
ViaLocationInputInput format for specifying a location through either a place reference (id), coordinates or both. If both place and coordinates are provided the place ref will be used if found, coordinates will only be used if place is not known. The location also contain information about the minimum and maximum time the user is willing to stay at the via location.
ViaSegmentInputDid you find what you were looking for?