Fare Zone
Return distance between two fare zones
Calculates the shortest-path distance between two fare zones, where 'distance' is the number of fare zone borders crossed. All shortest paths of equal length are returned. Nested zones are transparently mapped to their parent overlapping zone before the path is calculated.
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
Return distance between two fare zones › Request Body
fromtoorganisationIdtimeviaUse 'via' to force the path through one or more intermediate zones.
preOwnedUse 'preOwned' to exclude zones the traveller already owns — these zones are not counted toward the distance.
Return distance between two fare zones › Responses
OK
fromZoneIdtoZoneIdorganisationIddistanceThis field only gets populated if the direct path from-to is shorter than the via path
Return zone distance between two stop places
Resolves stop places to coordinates, then determines which overlapping fare zones each stop belongs to. Because a stop place can belong to multiple overlapping fare zones, all zone combinations are evaluated and one result per combination is returned. The request does support mixing zones into the stop places. If only doing zones the recommended url is /fare-zones/distances/zones as it is faster
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
Return zone distance between two stop places › Request Body
stopPlacesOrdered list of stop place IDs (first is origin, last is destination, any in between are via-points) the path must pass through. If needed the list can also contain Zones
organisationIdcodespacestimepreOwnedReturn zone distance between two stop places › Responses
OK
fromZoneIdtoZoneIdorganisationIddistanceThis field only gets populated if the direct path from-to is shorter than the via path
Return distance from polyline
Finds all zones that a polyline passes through
query Parameters
organisationIdList of organisations that one might request zones through
timeThe time at which the distance is active. This defaults to now
excludePolylineCoordinatesRemoves the polyline coordinates from the response
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application>.
X-Correlation-IdCorrelation id
Return distance from polyline › Responses
OK