Entur Developer
Distances and zones

FareZoneDistanceRequest

from
​string
to
​string
organisationId
​integer | null · int64
time
​string | null · date-time
via
​array | null

Use 'via' to force the path through one or more intermediate zones.

preOwned
​array | null · unique

Use 'preOwned' to exclude zones the traveller already owns — these zones are not counted toward the distance.

FareZoneDistanceResponse

fromZoneId
​string
toZoneId
​string
organisationId
​integer · int64
distance
​integer · int32
​Zones[]
​array | null

This field only gets populated if the direct path from-to is shorter than the via path

Zones

requiredZones
​string[] · unique
path
​array | null

ZonalStopPlaceDistanceRequest

stopPlaces
​string[] · minItems: 1 · required

Ordered 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

organisationId
​integer | null · int64
codespaces
​string | null · minLength: 3 · maxLength: 3
time
​string | null · date-time
preOwned
​array | null · unique

CoordinateDistanceResponse

from
​string[]
to
​string[]
​array | null
allZonesCrossed
​string[]
​OrgBasedDistances[]

OrgBasedDistances

from
​string
to
​string
organisation
​integer · int64
zonesCrossed
​string[]
shortestDistance
​integer · int32
shortestPath
​array[]

ZoneCoordinate

latitude
​number
longitude
​number

DistanceCalculationResponse

organisationId
​integer · int64
fromStopPlaceId
​string
toStopPlaceId
​string
distance
​integer · int32
​array | null

DistancePath

id
​string
distance
​integer · int32
Did you find what you were looking for?