Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data CalculateRouteSummary = CalculateRouteSummary' {}
- newCalculateRouteSummary :: Text -> Double -> DistanceUnit -> Double -> NonEmpty Double -> CalculateRouteSummary
- calculateRouteSummary_dataSource :: Lens' CalculateRouteSummary Text
- calculateRouteSummary_distance :: Lens' CalculateRouteSummary Double
- calculateRouteSummary_distanceUnit :: Lens' CalculateRouteSummary DistanceUnit
- calculateRouteSummary_durationSeconds :: Lens' CalculateRouteSummary Double
- calculateRouteSummary_routeBBox :: Lens' CalculateRouteSummary (NonEmpty Double)
Documentation
data CalculateRouteSummary Source #
A summary of the calculated route.
See: newCalculateRouteSummary
smart constructor.
CalculateRouteSummary' | |
|
Instances
newCalculateRouteSummary Source #
:: Text | |
-> Double | |
-> DistanceUnit | |
-> Double | |
-> NonEmpty Double | |
-> CalculateRouteSummary |
Create a value of CalculateRouteSummary
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dataSource:CalculateRouteSummary'
, calculateRouteSummary_dataSource
- The data provider of traffic and road network data used to calculate the
route. Indicates one of the available providers:
Esri
Here
For more information about data providers, see Amazon Location Service data providers.
$sel:distance:CalculateRouteSummary'
, calculateRouteSummary_distance
- 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.
$sel:distanceUnit:CalculateRouteSummary'
, calculateRouteSummary_distanceUnit
- The unit of measurement for the distance.
$sel:durationSeconds:CalculateRouteSummary'
, calculateRouteSummary_durationSeconds
- The total travel time for the route measured in seconds. The sum of the
travel time between every stop on the route.
$sel:routeBBox:CalculateRouteSummary'
, calculateRouteSummary_routeBBox
- 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.
calculateRouteSummary_dataSource :: Lens' CalculateRouteSummary Text Source #
The data provider of traffic and road network data used to calculate the route. Indicates one of the available providers:
Esri
Here
For more information about data providers, see Amazon Location Service data providers.
calculateRouteSummary_distance :: Lens' CalculateRouteSummary Double Source #
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.
calculateRouteSummary_distanceUnit :: Lens' CalculateRouteSummary DistanceUnit Source #
The unit of measurement for the distance.
calculateRouteSummary_durationSeconds :: Lens' CalculateRouteSummary Double Source #
The total travel time for the route measured in seconds. The sum of the travel time between every stop on the route.
calculateRouteSummary_routeBBox :: Lens' CalculateRouteSummary (NonEmpty Double) Source #
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.