Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data RouteMatrixEntry = RouteMatrixEntry' {}
- newRouteMatrixEntry :: RouteMatrixEntry
- routeMatrixEntry_distance :: Lens' RouteMatrixEntry (Maybe Double)
- routeMatrixEntry_durationSeconds :: Lens' RouteMatrixEntry (Maybe Double)
- routeMatrixEntry_error :: Lens' RouteMatrixEntry (Maybe RouteMatrixEntryError)
Documentation
data RouteMatrixEntry Source #
The result for the calculated route of one DeparturePosition
DestinationPosition
pair.
See: newRouteMatrixEntry
smart constructor.
RouteMatrixEntry' | |
|
Instances
newRouteMatrixEntry :: RouteMatrixEntry Source #
Create a value of RouteMatrixEntry
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:distance:RouteMatrixEntry'
, routeMatrixEntry_distance
- The total distance of travel for the route.
$sel:durationSeconds:RouteMatrixEntry'
, routeMatrixEntry_durationSeconds
- The expected duration of travel for the route.
$sel:error:RouteMatrixEntry'
, routeMatrixEntry_error
- An error corresponding to the calculation of a route between the
DeparturePosition
and DestinationPosition
.
routeMatrixEntry_distance :: Lens' RouteMatrixEntry (Maybe Double) Source #
The total distance of travel for the route.
routeMatrixEntry_durationSeconds :: Lens' RouteMatrixEntry (Maybe Double) Source #
The expected duration of travel for the route.
routeMatrixEntry_error :: Lens' RouteMatrixEntry (Maybe RouteMatrixEntryError) Source #
An error corresponding to the calculation of a route between the
DeparturePosition
and DestinationPosition
.