Sha256: ae20258484e2a231e3f9e5f406510ace7c903e3768e6990164d5db7a3a43ea65

Contents?: true

Size: 539 Bytes

Versions: 3

Compression:

Stored size: 539 Bytes

Contents

module Loqate
  module Geocoding
    # A result from the geocode API call.
    class Location < Dry::Struct::Value
      # The name of the location found.
      #
      # @return [String]
      #
      attribute :name, Types::Strict::String

      # The WGS84 latitude of the found location.
      #
      # @return [Float]
      #
      attribute :latitude, Types::Strict::Float

      # The WGS84 longitude of the found location.
      #
      # @return [Float]
      #
      attribute :longitude, Types::Strict::Float
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loqate-0.10.1 lib/loqate/geocoding/location.rb
loqate-0.10.0 lib/loqate/geocoding/location.rb
loqate-0.9.0 lib/loqate/geocoding/location.rb