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 Place = Place' {
- addressNumber :: Maybe Text
- country :: Maybe Text
- interpolated :: Maybe Bool
- label :: Maybe Text
- municipality :: Maybe Text
- neighborhood :: Maybe Text
- postalCode :: Maybe Text
- region :: Maybe Text
- street :: Maybe Text
- subRegion :: Maybe Text
- timeZone :: Maybe TimeZone
- unitNumber :: Maybe Text
- unitType :: Maybe Text
- geometry :: PlaceGeometry
- newPlace :: PlaceGeometry -> Place
- place_addressNumber :: Lens' Place (Maybe Text)
- place_country :: Lens' Place (Maybe Text)
- place_interpolated :: Lens' Place (Maybe Bool)
- place_label :: Lens' Place (Maybe Text)
- place_municipality :: Lens' Place (Maybe Text)
- place_neighborhood :: Lens' Place (Maybe Text)
- place_postalCode :: Lens' Place (Maybe Text)
- place_region :: Lens' Place (Maybe Text)
- place_street :: Lens' Place (Maybe Text)
- place_subRegion :: Lens' Place (Maybe Text)
- place_timeZone :: Lens' Place (Maybe TimeZone)
- place_unitNumber :: Lens' Place (Maybe Text)
- place_unitType :: Lens' Place (Maybe Text)
- place_geometry :: Lens' Place PlaceGeometry
Documentation
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.
Place' | |
|
Instances
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
.
place_geometry :: Lens' Place PlaceGeometry Source #
Undocumented member.