Interface LocationOrBuilder (1.10.0)

publicinterface LocationOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getHeading()

publicabstractintgetHeading()

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.

optional int32 heading = 2;

Returns
Type Description
int

The heading.

getLatLng()

publicabstractLatLnggetLatLng()

The waypoint's geographic coordinates.

.google.type.LatLng lat_lng = 1;

Returns
Type Description
com.google.type.LatLng

The latLng.

getLatLngOrBuilder()

publicabstractLatLngOrBuildergetLatLngOrBuilder()

The waypoint's geographic coordinates.

.google.type.LatLng lat_lng = 1;

Returns
Type Description
com.google.type.LatLngOrBuilder

hasHeading()

publicabstractbooleanhasHeading()

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.

optional int32 heading = 2;

Returns
Type Description
boolean

Whether the heading field is set.

hasLatLng()

publicabstractbooleanhasLatLng()

The waypoint's geographic coordinates.

.google.type.LatLng lat_lng = 1;

Returns
Type Description
boolean

Whether the latLng field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.