amazonka-location-2.0: Amazon Location Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Location.Types.LegGeometry

Description

 
Synopsis

Documentation

data LegGeometry Source #

Contains the geometry details for each path between a pair of positions. Used in plotting a route leg on a map.

See: newLegGeometry smart constructor.

Constructors

LegGeometry' 

Fields

  • lineString :: Maybe (NonEmpty (Sensitive (NonEmpty Double)))

    An ordered list of positions used to plot a route on a map.

    The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.

    • For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

Instances

Instances details
FromJSON LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

Generic LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

Associated Types

type Rep LegGeometry :: Type -> Type #

Show LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

NFData LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

Methods

rnf :: LegGeometry -> () #

Eq LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

Hashable LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

type Rep LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

type Rep LegGeometry = D1 ('MetaData "LegGeometry" "Amazonka.Location.Types.LegGeometry" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "LegGeometry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lineString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty (Sensitive (NonEmpty Double)))))))

newLegGeometry :: LegGeometry Source #

Create a value of LegGeometry 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:lineString:LegGeometry', legGeometry_lineString - An ordered list of positions used to plot a route on a map.

The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.

  • For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]

legGeometry_lineString :: Lens' LegGeometry (Maybe (NonEmpty (NonEmpty Double))) Source #

An ordered list of positions used to plot a route on a map.

The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.

  • For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]