You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Pinpoint::Types::EndpointLocation

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing EndpointLocation as input to an Aws::Client method, you can use a vanilla Hash:

{
  city: "__string",
  country: "__string",
  latitude: 1.0,
  longitude: 1.0,
  postal_code: "__string",
  region: "__string",
}

Endpoint location data

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#cityString

The city where the endpoint is located.

Returns:

  • (String)

    The city where the endpoint is located.

#countryString

Country according to ISO 3166-1 Alpha-2 codes. For example, US.

Returns:

  • (String)

    Country according to ISO 3166-1 Alpha-2 codes.

#latitudeFloat

The latitude of the endpoint location. Rounded to one decimal (Roughly corresponding to a mile).

Returns:

  • (Float)

    The latitude of the endpoint location.

#longitudeFloat

The longitude of the endpoint location. Rounded to one decimal (Roughly corresponding to a mile).

Returns:

  • (Float)

    The longitude of the endpoint location.

#postal_codeString

The postal code or zip code of the endpoint.

Returns:

  • (String)

    The postal code or zip code of the endpoint.

#regionString

The region of the endpoint location. For example, corresponds to a state in US.

Returns:

  • (String)

    The region of the endpoint location.