Class: Loqate::Geocoding::Location

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

Overview

A result from the geocode API call.

Instance Method Summary collapse

Instance Method Details

#latitudeFloat

The WGS84 latitude of the found location.

Returns:

  • (Float)


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

attribute :latitude, Types::Strict::Float

#longitudeFloat

The WGS84 longitude of the found location.

Returns:

  • (Float)


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

attribute :longitude, Types::Strict::Float

#nameString

The name of the location found.

Returns:

  • (String)


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

attribute :name, Types::Strict::String