/AWS1/CL_LOCLEG¶
Contains the calculated route's details for each path between a pair of positions. The number of legs returned corresponds to one fewer than the total number of positions in the request.
For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road:
-
The
StartPositionis the departure position. -
The
EndPositionis the destination position.
A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road:
-
Leg 1: The
StartPositionis the departure position . TheEndPositionis the waypoint positon. -
Leg 2: The
StartPositionis the waypoint position. TheEndPositionis the destination position.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
it_startposition TYPE /AWS1/CL_LOCPOSITION_W=>TT_POSITION TT_POSITION¶
The starting position of the leg. Follows the format
[longitude,latitude].If the
StartPositionisn't located on a road, it's snapped to a nearby road.
it_endposition TYPE /AWS1/CL_LOCPOSITION_W=>TT_POSITION TT_POSITION¶
The terminating position of the leg. Follows the format
[longitude,latitude].If the
EndPositionisn't located on a road, it's snapped to a nearby road.
iv_distance TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The distance between the leg's
StartPositionandEndPositionalong a calculated route.
The default measurement is
Kilometersunless the request specifies aDistanceUnitofMiles.
iv_durationseconds TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The estimated travel time between the leg's
StartPositionandEndPosition. The travel mode and departure time that you specify in the request determines the calculated time.
it_steps TYPE /AWS1/CL_LOCSTEP=>TT_STEPLIST TT_STEPLIST¶
Contains a list of steps, which represent subsections of a leg. Each step provides instructions for how to move to the next step in the leg such as the step's start position, end position, travel distance, travel duration, and geometry offset.
Optional arguments:¶
io_geometry TYPE REF TO /AWS1/CL_LOCLEGGEOMETRY /AWS1/CL_LOCLEGGEOMETRY¶
Contains the calculated route's path as a linestring geometry.
Queryable Attributes¶
StartPosition¶
The starting position of the leg. Follows the format
[longitude,latitude].If the
StartPositionisn't located on a road, it's snapped to a nearby road.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STARTPOSITION() |
Getter for STARTPOSITION, with configurable default |
ASK_STARTPOSITION() |
Getter for STARTPOSITION w/ exceptions if field has no value |
HAS_STARTPOSITION() |
Determine if STARTPOSITION has a value |
EndPosition¶
The terminating position of the leg. Follows the format
[longitude,latitude].If the
EndPositionisn't located on a road, it's snapped to a nearby road.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ENDPOSITION() |
Getter for ENDPOSITION, with configurable default |
ASK_ENDPOSITION() |
Getter for ENDPOSITION w/ exceptions if field has no value |
HAS_ENDPOSITION() |
Determine if ENDPOSITION has a value |
Distance¶
The distance between the leg's
StartPositionandEndPositionalong a calculated route.
The default measurement is
Kilometersunless the request specifies aDistanceUnitofMiles.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DISTANCE() |
Getter for DISTANCE, with configurable default |
ASK_DISTANCE() |
Getter for DISTANCE w/ exceptions if field has no value |
STR_DISTANCE() |
String format for DISTANCE, with configurable default |
HAS_DISTANCE() |
Determine if DISTANCE has a value |
DurationSeconds¶
The estimated travel time between the leg's
StartPositionandEndPosition. The travel mode and departure time that you specify in the request determines the calculated time.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DURATIONSECONDS() |
Getter for DURATIONSECONDS, with configurable default |
ASK_DURATIONSECONDS() |
Getter for DURATIONSECONDS w/ exceptions if field has no val |
STR_DURATIONSECONDS() |
String format for DURATIONSECONDS, with configurable default |
HAS_DURATIONSECONDS() |
Determine if DURATIONSECONDS has a value |
Geometry¶
Contains the calculated route's path as a linestring geometry.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_GEOMETRY() |
Getter for GEOMETRY |
Steps¶
Contains a list of steps, which represent subsections of a leg. Each step provides instructions for how to move to the next step in the leg such as the step's start position, end position, travel distance, travel duration, and geometry offset.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STEPS() |
Getter for STEPS, with configurable default |
ASK_STEPS() |
Getter for STEPS w/ exceptions if field has no value |
HAS_STEPS() |
Determine if STEPS has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_LEGLIST¶
TYPES TT_LEGLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_LOCLEG WITH DEFAULT KEY
.