/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A summary of the calculated route.See Also:
AWS
* API Reference
The data provider of traffic and road network data used to calculate the * route. Indicates one of the available providers:
* Esri
Grab
* Here
For more information about data providers, * see Amazon * Location Service data providers.
*/ inline const Aws::String& GetDataSource() const{ return m_dataSource; } /** *The data provider of traffic and road network data used to calculate the * route. Indicates one of the available providers:
* Esri
Grab
* Here
For more information about data providers, * see Amazon * Location Service data providers.
*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *The data provider of traffic and road network data used to calculate the * route. Indicates one of the available providers:
* Esri
Grab
* Here
For more information about data providers, * see Amazon * Location Service data providers.
*/ inline void SetDataSource(const Aws::String& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *The data provider of traffic and road network data used to calculate the * route. Indicates one of the available providers:
* Esri
Grab
* Here
For more information about data providers, * see Amazon * Location Service data providers.
*/ inline void SetDataSource(Aws::String&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *The data provider of traffic and road network data used to calculate the * route. Indicates one of the available providers:
* Esri
Grab
* Here
For more information about data providers, * see Amazon * Location Service data providers.
*/ inline void SetDataSource(const char* value) { m_dataSourceHasBeenSet = true; m_dataSource.assign(value); } /** *The data provider of traffic and road network data used to calculate the * route. Indicates one of the available providers:
* Esri
Grab
* Here
For more information about data providers, * see Amazon * Location Service data providers.
*/ inline CalculateRouteSummary& WithDataSource(const Aws::String& value) { SetDataSource(value); return *this;} /** *The data provider of traffic and road network data used to calculate the * route. Indicates one of the available providers:
* Esri
Grab
* Here
For more information about data providers, * see Amazon * Location Service data providers.
*/ inline CalculateRouteSummary& WithDataSource(Aws::String&& value) { SetDataSource(std::move(value)); return *this;} /** *The data provider of traffic and road network data used to calculate the * route. Indicates one of the available providers:
* Esri
Grab
* Here
For more information about data providers, * see Amazon * Location Service data providers.
*/ inline CalculateRouteSummary& WithDataSource(const char* value) { SetDataSource(value); return *this;} /** *The total distance covered by the route. The sum of the distance travelled * between every stop on the route.
If Esri is the data source for
* the route calculator, the route distance can’t be greater than 400 km. If the
* route exceeds 400 km, the response is a 400
* RoutesValidationException
error.
The total distance covered by the route. The sum of the distance travelled * between every stop on the route.
If Esri is the data source for
* the route calculator, the route distance can’t be greater than 400 km. If the
* route exceeds 400 km, the response is a 400
* RoutesValidationException
error.
The total distance covered by the route. The sum of the distance travelled * between every stop on the route.
If Esri is the data source for
* the route calculator, the route distance can’t be greater than 400 km. If the
* route exceeds 400 km, the response is a 400
* RoutesValidationException
error.
The total distance covered by the route. The sum of the distance travelled * between every stop on the route.
If Esri is the data source for
* the route calculator, the route distance can’t be greater than 400 km. If the
* route exceeds 400 km, the response is a 400
* RoutesValidationException
error.
The unit of measurement for route distances.
*/ inline const DistanceUnit& GetDistanceUnit() const{ return m_distanceUnit; } /** *The unit of measurement for route distances.
*/ inline bool DistanceUnitHasBeenSet() const { return m_distanceUnitHasBeenSet; } /** *The unit of measurement for route distances.
*/ inline void SetDistanceUnit(const DistanceUnit& value) { m_distanceUnitHasBeenSet = true; m_distanceUnit = value; } /** *The unit of measurement for route distances.
*/ inline void SetDistanceUnit(DistanceUnit&& value) { m_distanceUnitHasBeenSet = true; m_distanceUnit = std::move(value); } /** *The unit of measurement for route distances.
*/ inline CalculateRouteSummary& WithDistanceUnit(const DistanceUnit& value) { SetDistanceUnit(value); return *this;} /** *The unit of measurement for route distances.
*/ inline CalculateRouteSummary& WithDistanceUnit(DistanceUnit&& value) { SetDistanceUnit(std::move(value)); return *this;} /** *The total travel time for the route measured in seconds. The sum of the * travel time between every stop on the route.
*/ inline double GetDurationSeconds() const{ return m_durationSeconds; } /** *The total travel time for the route measured in seconds. The sum of the * travel time between every stop on the route.
*/ inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; } /** *The total travel time for the route measured in seconds. The sum of the * travel time between every stop on the route.
*/ inline void SetDurationSeconds(double value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; } /** *The total travel time for the route measured in seconds. The sum of the * travel time between every stop on the route.
*/ inline CalculateRouteSummary& WithDurationSeconds(double value) { SetDurationSeconds(value); return *this;} /** *Specifies a geographical box surrounding a route. Used to zoom into a route
* when displaying it in a map. For example, [min x, min y, max x, max
* y]
.
The first 2 bbox
parameters describe the lower
* southwest corner:
The first bbox
position is the
* X coordinate or longitude of the lower southwest corner.
The
* second bbox
position is the Y coordinate or latitude of the lower
* southwest corner.
The next 2 bbox
parameters
* describe the upper northeast corner:
The third
* bbox
position is the X coordinate, or longitude of the upper
* northeast corner.
The fourth bbox
position is
* the Y coordinate, or latitude of the upper northeast corner.
Specifies a geographical box surrounding a route. Used to zoom into a route
* when displaying it in a map. For example, [min x, min y, max x, max
* y]
.
The first 2 bbox
parameters describe the lower
* southwest corner:
The first bbox
position is the
* X coordinate or longitude of the lower southwest corner.
The
* second bbox
position is the Y coordinate or latitude of the lower
* southwest corner.
The next 2 bbox
parameters
* describe the upper northeast corner:
The third
* bbox
position is the X coordinate, or longitude of the upper
* northeast corner.
The fourth bbox
position is
* the Y coordinate, or latitude of the upper northeast corner.
Specifies a geographical box surrounding a route. Used to zoom into a route
* when displaying it in a map. For example, [min x, min y, max x, max
* y]
.
The first 2 bbox
parameters describe the lower
* southwest corner:
The first bbox
position is the
* X coordinate or longitude of the lower southwest corner.
The
* second bbox
position is the Y coordinate or latitude of the lower
* southwest corner.
The next 2 bbox
parameters
* describe the upper northeast corner:
The third
* bbox
position is the X coordinate, or longitude of the upper
* northeast corner.
The fourth bbox
position is
* the Y coordinate, or latitude of the upper northeast corner.
Specifies a geographical box surrounding a route. Used to zoom into a route
* when displaying it in a map. For example, [min x, min y, max x, max
* y]
.
The first 2 bbox
parameters describe the lower
* southwest corner:
The first bbox
position is the
* X coordinate or longitude of the lower southwest corner.
The
* second bbox
position is the Y coordinate or latitude of the lower
* southwest corner.
The next 2 bbox
parameters
* describe the upper northeast corner:
The third
* bbox
position is the X coordinate, or longitude of the upper
* northeast corner.
The fourth bbox
position is
* the Y coordinate, or latitude of the upper northeast corner.
Specifies a geographical box surrounding a route. Used to zoom into a route
* when displaying it in a map. For example, [min x, min y, max x, max
* y]
.
The first 2 bbox
parameters describe the lower
* southwest corner:
The first bbox
position is the
* X coordinate or longitude of the lower southwest corner.
The
* second bbox
position is the Y coordinate or latitude of the lower
* southwest corner.
The next 2 bbox
parameters
* describe the upper northeast corner:
The third
* bbox
position is the X coordinate, or longitude of the upper
* northeast corner.
The fourth bbox
position is
* the Y coordinate, or latitude of the upper northeast corner.
Specifies a geographical box surrounding a route. Used to zoom into a route
* when displaying it in a map. For example, [min x, min y, max x, max
* y]
.
The first 2 bbox
parameters describe the lower
* southwest corner:
The first bbox
position is the
* X coordinate or longitude of the lower southwest corner.
The
* second bbox
position is the Y coordinate or latitude of the lower
* southwest corner.
The next 2 bbox
parameters
* describe the upper northeast corner:
The third
* bbox
position is the X coordinate, or longitude of the upper
* northeast corner.
The fourth bbox
position is
* the Y coordinate, or latitude of the upper northeast corner.
Specifies a geographical box surrounding a route. Used to zoom into a route
* when displaying it in a map. For example, [min x, min y, max x, max
* y]
.
The first 2 bbox
parameters describe the lower
* southwest corner:
The first bbox
position is the
* X coordinate or longitude of the lower southwest corner.
The
* second bbox
position is the Y coordinate or latitude of the lower
* southwest corner.
The next 2 bbox
parameters
* describe the upper northeast corner:
The third
* bbox
position is the X coordinate, or longitude of the upper
* northeast corner.
The fourth bbox
position is
* the Y coordinate, or latitude of the upper northeast corner.