Cloud Optimization V1 API - Class Google::Type::LatLng (v0.3.0)

Reference documentation and code samples for the Cloud Optimization V1 API class Google::Type::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 must conform to the WGS84 standard. Values must be within normalized ranges.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#latitude

def latitude() -> ::Float
Returns
  • (::Float) — The latitude in degrees. It must be in the range [-90.0, +90.0].

#latitude=

def latitude=(value) -> ::Float
Parameter
  • value (::Float) — The latitude in degrees. It must be in the range [-90.0, +90.0].
Returns
  • (::Float) — The latitude in degrees. It must be in the range [-90.0, +90.0].

#longitude

def longitude() -> ::Float
Returns
  • (::Float) — The longitude in degrees. It must be in the range [-180.0, +180.0].

#longitude=

def longitude=(value) -> ::Float
Parameter
  • value (::Float) — The longitude in degrees. It must be in the range [-180.0, +180.0].
Returns
  • (::Float) — The longitude in degrees. It must be in the range [-180.0, +180.0].