- [JSON representation](https://developers.google.com/maps/documentation/routes/reference/rest/v2/Location#SCHEMA_REPRESENTATION)

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

| JSON representation |
|---|
| ``` { "latLng": { object (`https://developers.google.com/maps/documentation/routes/reference/rest/v2/LatLng`) }, "heading": integer } ``` |

| Fields ||
|---|---|
| `latLng` | ``object (`https://developers.google.com/maps/documentation/routes/reference/rest/v2/LatLng`)`` The waypoint's geographic coordinates. |
| `heading` | `integer` The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road 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, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` `https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteTravelMode`. |