/AWS1/CL_LOCCALCULATEROUTERSP¶
Returns the result of the route calculation. Metadata includes legs and route summary.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
it_legs TYPE /AWS1/CL_LOCLEG=>TT_LEGLIST TT_LEGLIST¶
Contains details about each path between a pair of positions included along a route such as:
StartPosition,EndPosition,Distance,DurationSeconds,Geometry, andSteps. 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.
io_summary TYPE REF TO /AWS1/CL_LOCCALCULATEROUTESUMM /AWS1/CL_LOCCALCULATEROUTESUMM¶
Contains information about the whole route, such as:
RouteBBox,DataSource,Distance,DistanceUnit, andDurationSeconds.
Queryable Attributes¶
Legs¶
Contains details about each path between a pair of positions included along a route such as:
StartPosition,EndPosition,Distance,DurationSeconds,Geometry, andSteps. 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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_LEGS() |
Getter for LEGS, with configurable default |
ASK_LEGS() |
Getter for LEGS w/ exceptions if field has no value |
HAS_LEGS() |
Determine if LEGS has a value |
Summary¶
Contains information about the whole route, such as:
RouteBBox,DataSource,Distance,DistanceUnit, andDurationSeconds.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SUMMARY() |
Getter for SUMMARY |