class Google::Apis::FirestoreV1beta1::LatLng

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.

Attributes

latitude[RW]

The latitude in degrees. It must be in the range [-90.0, +90.0]. Corresponds to the JSON property `latitude` @return [Float]

longitude[RW]

The longitude in degrees. It must be in the range [-180.0, +180.0]. Corresponds to the JSON property `longitude` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1beta1/classes.rb, line 1234
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1beta1/classes.rb, line 1239
def update!(**args)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
end