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.Place

Description

 
Synopsis

Documentation

data Place Source #

Contains details about addresses or points of interest that match the search criteria.

Not all details are included with all responses. Some details may only be returned by specific data partners.

See: newPlace smart constructor.

Constructors

Place' 

Fields

  • addressNumber :: Maybe Text

    The numerical portion of an address, such as a building number.

  • country :: Maybe Text

    A country/region specified using ISO 3166 3-digit country/region code. For example, CAN.

  • interpolated :: Maybe Bool

    True if the result is interpolated from other known places.

    False if the Place is a known place.

    Not returned when the partner does not provide the information.

    For example, returns False for an address location that is found in the partner data, but returns True if an address does not exist in the partner data and its location is calculated by interpolating between other known addresses.

  • label :: Maybe Text

    The full name and address of the point of interest such as a city, region, or country. For example, 123 Any Street, Any Town, USA.

  • municipality :: Maybe Text

    A name for a local area, such as a city or town name. For example, Toronto.

  • neighborhood :: Maybe Text

    The name of a community district. For example, Downtown.

  • postalCode :: Maybe Text

    A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.

  • region :: Maybe Text

    A name for an area or geographical division, such as a province or state name. For example, British Columbia.

  • street :: Maybe Text

    The name for a street or a road to identify a location. For example, Main Street.

  • subRegion :: Maybe Text

    A country, or an area that's part of a larger region. For example, Metro Vancouver.

  • timeZone :: Maybe TimeZone

    The time zone in which the Place is located. Returned only when using HERE as the selected partner.

  • unitNumber :: Maybe Text

    For addresses with multiple units, the unit identifier. Can include numbers and letters, for example 3B or Unit 123.

    Returned only for a place index that uses Esri as a data provider. Is not returned for SearchPlaceIndexForPosition.

  • unitType :: Maybe Text

    For addresses with a UnitNumber, the type of unit. For example, Apartment.

  • geometry :: PlaceGeometry
     

Instances

Instances details
FromJSON Place Source # 
Instance details

Defined in Amazonka.Location.Types.Place

Generic Place Source # 
Instance details

Defined in Amazonka.Location.Types.Place

Associated Types

type Rep Place :: Type -> Type #

Methods

from :: Place -> Rep Place x #

to :: Rep Place x -> Place #

Show Place Source # 
Instance details

Defined in Amazonka.Location.Types.Place

Methods

showsPrec :: Int -> Place -> ShowS #

show :: Place -> String #

showList :: [Place] -> ShowS #

NFData Place Source # 
Instance details

Defined in Amazonka.Location.Types.Place

Methods

rnf :: Place -> () #

Eq Place Source # 
Instance details

Defined in Amazonka.Location.Types.Place

Methods

(==) :: Place -> Place -> Bool #

(/=) :: Place -> Place -> Bool #

Hashable Place Source # 
Instance details

Defined in Amazonka.Location.Types.Place

Methods

hashWithSalt :: Int -> Place -> Int #

hash :: Place -> Int #

type Rep Place Source # 
Instance details

Defined in Amazonka.Location.Types.Place

type Rep Place = D1 ('MetaData "Place" "Amazonka.Location.Types.Place" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "Place'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "addressNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "country") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "interpolated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "municipality") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "neighborhood") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "postalCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "street") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "timeZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeZone)) :*: S1 ('MetaSel ('Just "unitNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "unitType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "geometry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PlaceGeometry))))))

newPlace Source #

Create a value of Place 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:addressNumber:Place', place_addressNumber - The numerical portion of an address, such as a building number.

$sel:country:Place', place_country - A country/region specified using ISO 3166 3-digit country/region code. For example, CAN.

$sel:interpolated:Place', place_interpolated - True if the result is interpolated from other known places.

False if the Place is a known place.

Not returned when the partner does not provide the information.

For example, returns False for an address location that is found in the partner data, but returns True if an address does not exist in the partner data and its location is calculated by interpolating between other known addresses.

$sel:label:Place', place_label - The full name and address of the point of interest such as a city, region, or country. For example, 123 Any Street, Any Town, USA.

$sel:municipality:Place', place_municipality - A name for a local area, such as a city or town name. For example, Toronto.

$sel:neighborhood:Place', place_neighborhood - The name of a community district. For example, Downtown.

$sel:postalCode:Place', place_postalCode - A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.

$sel:region:Place', place_region - A name for an area or geographical division, such as a province or state name. For example, British Columbia.

$sel:street:Place', place_street - The name for a street or a road to identify a location. For example, Main Street.

$sel:subRegion:Place', place_subRegion - A country, or an area that's part of a larger region. For example, Metro Vancouver.

$sel:timeZone:Place', place_timeZone - The time zone in which the Place is located. Returned only when using HERE as the selected partner.

$sel:unitNumber:Place', place_unitNumber - For addresses with multiple units, the unit identifier. Can include numbers and letters, for example 3B or Unit 123.

Returned only for a place index that uses Esri as a data provider. Is not returned for SearchPlaceIndexForPosition.

$sel:unitType:Place', place_unitType - For addresses with a UnitNumber, the type of unit. For example, Apartment.

$sel:geometry:Place', place_geometry - Undocumented member.

place_addressNumber :: Lens' Place (Maybe Text) Source #

The numerical portion of an address, such as a building number.

place_country :: Lens' Place (Maybe Text) Source #

A country/region specified using ISO 3166 3-digit country/region code. For example, CAN.

place_interpolated :: Lens' Place (Maybe Bool) Source #

True if the result is interpolated from other known places.

False if the Place is a known place.

Not returned when the partner does not provide the information.

For example, returns False for an address location that is found in the partner data, but returns True if an address does not exist in the partner data and its location is calculated by interpolating between other known addresses.

place_label :: Lens' Place (Maybe Text) Source #

The full name and address of the point of interest such as a city, region, or country. For example, 123 Any Street, Any Town, USA.

place_municipality :: Lens' Place (Maybe Text) Source #

A name for a local area, such as a city or town name. For example, Toronto.

place_neighborhood :: Lens' Place (Maybe Text) Source #

The name of a community district. For example, Downtown.

place_postalCode :: Lens' Place (Maybe Text) Source #

A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.

place_region :: Lens' Place (Maybe Text) Source #

A name for an area or geographical division, such as a province or state name. For example, British Columbia.

place_street :: Lens' Place (Maybe Text) Source #

The name for a street or a road to identify a location. For example, Main Street.

place_subRegion :: Lens' Place (Maybe Text) Source #

A country, or an area that's part of a larger region. For example, Metro Vancouver.

place_timeZone :: Lens' Place (Maybe TimeZone) Source #

The time zone in which the Place is located. Returned only when using HERE as the selected partner.

place_unitNumber :: Lens' Place (Maybe Text) Source #

For addresses with multiple units, the unit identifier. Can include numbers and letters, for example 3B or Unit 123.

Returned only for a place index that uses Esri as a data provider. Is not returned for SearchPlaceIndexForPosition.

place_unitType :: Lens' Place (Maybe Text) Source #

For addresses with a UnitNumber, the type of unit. For example, Apartment.