# Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::Location (v0.16.0)

0.16.0 (latest) 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.2 0.8.2 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.1 0.1.1 Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::Location.

Encapsulates a location (a geographic point, and an optional heading).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #heading

    def heading() -> ::Integer

**Returns**

- (::Integer) --- The compass heading associated with the direction of the flow of traffic. This value is used to specify the side of the road to use for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, etc.

### #heading=

    def heading=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The compass heading associated with the direction of the flow of traffic. This value is used to specify the side of the road to use for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, etc.
**Returns**

- (::Integer) --- The compass heading associated with the direction of the flow of traffic. This value is used to specify the side of the road to use for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, etc.

### #lat_lng

    def lat_lng() -> ::Google::Type::LatLng

**Returns**

- ([::Google::Type::LatLng](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-optimization-v1/latest/Google-Type-LatLng)) --- The waypoint's geographic coordinates.

### #lat_lng=

    def lat_lng=(value) -> ::Google::Type::LatLng

**Parameter**

- **value** ([::Google::Type::LatLng](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-optimization-v1/latest/Google-Type-LatLng)) --- The waypoint's geographic coordinates.
**Returns**

- ([::Google::Type::LatLng](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-optimization-v1/latest/Google-Type-LatLng)) --- The waypoint's geographic coordinates.