Class: Loqate::Geocoding::Place

Inherits:
Dry::Struct::Value
  • Object
show all
Defined in:
lib/loqate/geocoding/place.rb

Overview

A result from the API call to find the nearest places.

Instance Method Summary collapse

Instance Method Details

#distanceFloat

The distance in KM from the CentrePoint to this record.

Returns:

  • (Float)


15
# File 'lib/loqate/geocoding/place.rb', line 15

attribute :distance, Types::Coercible::Float

#latitudeFloat

The WGS84 latitude coordinate of the location.

Returns:

  • (Float)


21
# File 'lib/loqate/geocoding/place.rb', line 21

attribute :latitude, Types::Coercible::Float

#locationString

The postcode that is nearest to the given location.

Returns:

  • (String)


9
# File 'lib/loqate/geocoding/place.rb', line 9

attribute :location, Types::Strict::String

#longitudeFloat

The WGS84 longitude coordinate of the location.

Returns:

  • (Float)


27
# File 'lib/loqate/geocoding/place.rb', line 27

attribute :longitude, Types::Coercible::Float