Pedestrian Routing Request
The pedestrian routing API computes personalized pedestrian routes from a start location to a number of destination locations using Per Pedes Routing (PPR).
-
start required, type Position
The start location.
-
destinations required, array of Position
At least one destination location.
-
search_options required
The PPR search profile and maximum walk duration to use. See PPR Search Profile.
-
include_steps optional, type
boolean
, default isfalse
Whether to include a travel itinerary in the response.
-
include_edges optional, type
boolean
, default isfalse
Whether to include a list of all used edges in the response (useful for debugging purposes).
-
include_path optional, type
boolean
, default isfalse
Whether to include the complete path as a single polyline in the response.
Pedestrian Routing Response
The pedestrian routing response contains routes from the start location to each of the destination locations included in the request.
-
routes array of Routes
Contains a list of routes for each destination included in the request. This list always has the same size as the
destinations
list from the request, and contains routes for the destinations in the same order as they appear in the request.
Routes
-
routes array of Route
All pareto-optimal routes from the start location to this destination location. This list can be empty if no route could be found within the specified duration limit.
Route
-
distance type
float
The total walking distance in meters.
-
duration type
integer
The total duration in minutes (rounded as specified in the search profile).
-
duration_exact type
float
The total duration in minutes.
-
duration_division type
float
Duration division, if used in the search profile and more routes than allowed were found.
-
accessibility type
integer
The total accessibility value of the connection (rounded as specified in the search profile).
-
accessibility_exact type
float
The total accessibility value of the connection.
-
accessibility_division type
float
Accessibility division, if used in the search profile and more routes than allowed were found.
-
start type Position
The start location of this route.
-
destination type Position
The destination location of this route.
-
elevation_up type
float
Total upwards elevation profile in meters.
-
elevation_down type
float
Total downwards elevation profile in meters.
-
steps array of RouteStep
A list of steps describing the itinerary. Only present if
include_steps
was set totrue
in the request (otherwise an empty array). -
edges array of Edge
A list of edges used in the route. Only present if
include_edges
was set totrue
in the request (otherwise an empty array). -
path type Polyline
A polyline describing the complete route. Only present if
include_path
was set totrue
in the request (otherwise an empty polyline).
RouteStep
-
step_type type
string
Type of this step.
STREET
: Walk along a street.FOOTWAY
: Walk along a footpath.CROSSING
: Cross a street or railway/tram tracks.ELEVATOR
: Use an elevator.ENTRANCE
: Use an entrance.CYCLE_BARRIER
: Pass a cycle barrier.
-
street_name type
string
The name of the street, if applicable (otherwise an empty string).
-
street_type type
string
The type of street, footway or railway. See OpenStreetMap for descriptions of the various types.
NONE
(default)TRACK
FOOTWAY
PATH
CYCLEWAY
BRIDLEWAY
STAIRS
ESCALATOR
MOVING_WALKWAY
PLATFORM
SERVICE
PEDESTRIAN
LIVING
RESIDENTIAL
UNCLASSIFIED
TERTIARY
SECONDARY
PRIMARY
RAIL
TRAM
-
crossing_type type
string
If
step_type
isCROSSING
, this attribute specifies the type of crossing. See OpenStreetMap for descriptions of the various crossing types.NONE
(default)GENERATED
: Automatically generated unmarked crossing (not included in OpenStreetMap data).UNMARKED
: Unmarked crossing included in OpenStreetMap data.MARKED
: Marked crossing, i.e. with road markings.ISLAND
: Crossing with a traffic island.SIGNALS
: Crossing with traffic signals.
-
distance type
float
Length of this segment in meters.
-
duration type
float
Duration of this segment in seconds.
-
accessibility type
float
Accessibility value of this segment.
-
path type Polyline
A polyline describing this segment.
-
elevation_up type
int
Upwards elevation profile in meters.
-
elevation_down type
int
Downwards elevation profile in meters.
-
incline_up type
boolean
The direction of stairs (up or down).
-
handrail type
string
Whether the stairs have handrails.
UNKNOWN
NO
YES
-
door_type type
string
If
step_type
isENTRANCE
, this attribute specifies the type of door. See OpenStreetMap for descriptions of the various crossing types.UNKNOWN
(default)YES
NO
HINGED
SLIDING
REVOLVING
FOLDING
TRAPDOOR
OVERHEAD
-
automatic_door_type type
string
If
step_type
isENTRANCE
, this attribute specifies the type of automatic door. See OpenStreetMap for descriptions of the various crossing types.UNKNOWN
(default)YES
NO
BUTTON
MOTION
FLOOR
CONTINUOUS
SLOWDOWN_BUTTON
-
traffic_signals_sound type
string
If this is a crossing with traffic signals, specifies whether there are sound signals.
UNKNOWN
NO
YES
-
traffic_signals_vibration type
string
If this is a crossing with traffic signals, specifies whether there are vibration signals.
UNKNOWN
NO
YES
Edge
-
distance type
float
Length of this edge in meters.
-
duration type
float
Duration of this edge in seconds.
-
accessibility type
float
Accessibility value of this edge.
-
path type Polyline
A polyline describing this edge.
-
name type
string
The name of the street, if applicable (otherwise an empty string).
-
osm_way_id type
integer
The OpenStreetMap way id of the way this edge is based on. This value is
0
for additional edges. For crossings the value is negative, the absolue value is the id of the way that is crossed. -
edge_type type
string
The type of the routing graph edge.
CONNECTION
STREET
FOOTWAY
CROSSING
ELEVATOR
ENTRANCE
CYCLE_BARRIER
-
street_type type
string
The type of street, footway or railway. See RouteStep.
-
crossing_type type
string
See RouteStep.
-
elevation_up type
int
Upwards elevation profile in meters.
-
elevation_down type
int
Downwards elevation profile in meters.
-
incline_up type
boolean
The direction of stairs (up or down).
-
handrail type
string
Whether the stairs have handrails. See RouteStep.
-
door_type type
string
If
edge_type
isENTRANCE
, this attribute specifies the type of door. See RouteStep. -
automatic_door_type type
string
If
edge_type
isENTRANCE
, this attribute specifies the type of automatic door. See RouteStep. -
traffic_signals_sound type
string
If this is a crossing with traffic signals, specifies whether there are sound signals. See RouteStep.
-
traffic_signals_vibration type
string
If this is a crossing with traffic signals, specifies whether there are vibration signals. See RouteStep.
PPR Search Profiles
This request returns a list of available PPR search profiles.
-
profiles array of FootRoutingProfileInfo
List of all available PPR search profiles.
FootRoutingProfileInfo
Contains basic information about a PPR search profile.
-
name type
string
The name of this search profile as used in routing requests (see PPR Search Profile).
-
walking_speed type
float
The walking speed of this profile in m/s.