libZSservicesZSamazonka-locationZSamazonka-location
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

Show 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 #

NFData LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

Methods

rnf :: LegGeometry -> () #

Hashable LegGeometry Source # 
Instance details

Defined in Amazonka.Location.Types.LegGeometry

FromJSON 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" "libZSservicesZSamazonka-locationZSamazonka-location" '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]]