Skip to content

/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, and Steps. 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 StartPosition is the departure position.

  • The EndPosition is 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 StartPosition is the departure position . The EndPosition is the waypoint positon.

  • Leg 2: The StartPosition is the waypoint position. The EndPosition is 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, and DurationSeconds.


Queryable Attributes

Legs

Contains details about each path between a pair of positions included along a route such as: StartPosition, EndPosition, Distance, DurationSeconds, Geometry, and Steps. 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 StartPosition is the departure position.

  • The EndPosition is 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 StartPosition is the departure position . The EndPosition is the waypoint positon.

  • Leg 2: The StartPosition is the waypoint position. The EndPosition is 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, and DurationSeconds.

Accessible with the following methods

Method Description
GET_SUMMARY() Getter for SUMMARY