/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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 The 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 Leg 2: The
StartPosition
is the
* departure position.EndPosition
is the
* destination position.
StartPosition
is the
* departure position . The EndPosition
is the waypoint positon.StartPosition
is the waypoint position.
* The EndPosition
is the destination position.See Also:
AWS API
* Reference
The distance between the leg's StartPosition
and
* EndPosition
along a calculated route.
The default
* measurement is Kilometers
unless the request specifies a
* DistanceUnit
of Miles
.
The distance between the leg's StartPosition
and
* EndPosition
along a calculated route.
The default
* measurement is Kilometers
unless the request specifies a
* DistanceUnit
of Miles
.
The distance between the leg's StartPosition
and
* EndPosition
along a calculated route.
The default
* measurement is Kilometers
unless the request specifies a
* DistanceUnit
of Miles
.
The distance between the leg's StartPosition
and
* EndPosition
along a calculated route.
The default
* measurement is Kilometers
unless the request specifies a
* DistanceUnit
of Miles
.
The estimated travel time between the leg's StartPosition
and
* EndPosition
. The travel mode and departure time that you specify in
* the request determines the calculated time.
The estimated travel time between the leg's StartPosition
and
* EndPosition
. The travel mode and departure time that you specify in
* the request determines the calculated time.
The estimated travel time between the leg's StartPosition
and
* EndPosition
. The travel mode and departure time that you specify in
* the request determines the calculated time.
The estimated travel time between the leg's StartPosition
and
* EndPosition
. The travel mode and departure time that you specify in
* the request determines the calculated time.
The terminating position of the leg. Follows the format
* [longitude,latitude]
.
If the EndPosition
* isn't located on a road, it's snapped
* to a nearby road.
The terminating position of the leg. Follows the format
* [longitude,latitude]
.
If the EndPosition
* isn't located on a road, it's snapped
* to a nearby road.
The terminating position of the leg. Follows the format
* [longitude,latitude]
.
If the EndPosition
* isn't located on a road, it's snapped
* to a nearby road.
The terminating position of the leg. Follows the format
* [longitude,latitude]
.
If the EndPosition
* isn't located on a road, it's snapped
* to a nearby road.
The terminating position of the leg. Follows the format
* [longitude,latitude]
.
If the EndPosition
* isn't located on a road, it's snapped
* to a nearby road.
The terminating position of the leg. Follows the format
* [longitude,latitude]
.
If the EndPosition
* isn't located on a road, it's snapped
* to a nearby road.
The terminating position of the leg. Follows the format
* [longitude,latitude]
.
If the EndPosition
* isn't located on a road, it's snapped
* to a nearby road.
Contains the calculated route's path as a linestring geometry.
*/ inline const LegGeometry& GetGeometry() const{ return m_geometry; } /** *Contains the calculated route's path as a linestring geometry.
*/ inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; } /** *Contains the calculated route's path as a linestring geometry.
*/ inline void SetGeometry(const LegGeometry& value) { m_geometryHasBeenSet = true; m_geometry = value; } /** *Contains the calculated route's path as a linestring geometry.
*/ inline void SetGeometry(LegGeometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); } /** *Contains the calculated route's path as a linestring geometry.
*/ inline Leg& WithGeometry(const LegGeometry& value) { SetGeometry(value); return *this;} /** *Contains the calculated route's path as a linestring geometry.
*/ inline Leg& WithGeometry(LegGeometry&& value) { SetGeometry(std::move(value)); return *this;} /** *The starting position of the leg. Follows the format
* [longitude,latitude]
.
If the
* StartPosition
isn't located on a road, it's snapped
* to a nearby road.
The starting position of the leg. Follows the format
* [longitude,latitude]
.
If the
* StartPosition
isn't located on a road, it's snapped
* to a nearby road.
The starting position of the leg. Follows the format
* [longitude,latitude]
.
If the
* StartPosition
isn't located on a road, it's snapped
* to a nearby road.
The starting position of the leg. Follows the format
* [longitude,latitude]
.
If the
* StartPosition
isn't located on a road, it's snapped
* to a nearby road.
The starting position of the leg. Follows the format
* [longitude,latitude]
.
If the
* StartPosition
isn't located on a road, it's snapped
* to a nearby road.
The starting position of the leg. Follows the format
* [longitude,latitude]
.
If the
* StartPosition
isn't located on a road, it's snapped
* to a nearby road.
The starting position of the leg. Follows the format
* [longitude,latitude]
.
If the
* StartPosition
isn't located on a road, it's snapped
* to a nearby road.
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.
*/ inline const Aws::VectorContains 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.
*/ inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; } /** *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.
*/ inline void SetSteps(const Aws::VectorContains 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.
*/ inline void SetSteps(Aws::VectorContains 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.
*/ inline Leg& WithSteps(const Aws::VectorContains 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.
*/ inline Leg& WithSteps(Aws::VectorContains 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.
*/ inline Leg& AddSteps(const Step& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; } /** *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.
*/ inline Leg& AddSteps(Step&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; } private: double m_distance; bool m_distanceHasBeenSet = false; double m_durationSeconds; bool m_durationSecondsHasBeenSet = false; Aws::Vector