# TerminalLocation

- [JSON representation](https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/TerminalLocation#SCHEMA_REPRESENTATION)
- [PointSource](https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/TerminalLocation#PointSource)
- [TerminalPointId](https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/TerminalLocation#TerminalPointId)
  - [JSON representation](https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/TerminalLocation#TerminalPointId.SCHEMA_REPRESENTATION)

Describes the location of a waypoint.

| JSON representation |
|---|
| ``` { "point": { object (`https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/LatLng`) }, "place": string, "pointLocationSource": enum (`https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/TerminalLocation#PointSource`), "terminalPointId": { object (`https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/TerminalLocation#TerminalPointId`) }, "accessPointId": string, "tripId": string, "terminalLocationType": enum (`https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/WaypointType`) } ``` |

| Fields ||
|---|---|
| `point` | ``object (`https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/LatLng`)`` Denotes the exact `LatLng` of the waypoint. Either `point` or `place` must be specified as input. If both are specified, `point` will be used for routing and `place` will be used for metadata. If only `place` is specified as input, `point` will be calculated from the `place` and included in the output. |
| `place` | `string` The resource name of the place that represents this location. The format is `places/{placeId}`. Either `point` or `place` must be specified as input. If both are specified, `point` will be used for routing and `place` will be used for metadata. `place` is only included in the output if it was included in the input, meaning that there is no `place` lookup from `LatLng` performed. This is an experimental feature. |
| `pointLocationSource` | ``enum (`https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/TerminalLocation#PointSource`)`` Output only. The source of the `point` field. |
| `terminalPointId (deprecated)` | ``object (`https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/TerminalLocation#TerminalPointId`)`` > [!WARNING] > This item is deprecated! Deprecated: Specify the `place` field instead. |
| `accessPointId (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated: Specify the `place` field instead. |
| `tripId (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated. |
| `terminalLocationType (deprecated)` | ``enum (`https://developers.google.com/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/WaypointType`)`` > [!WARNING] > This item is deprecated! Deprecated: `Vehicle.waypoint` will have this data. |

## PointSource

Indicates the source of a `LatLng`.

| Enums ||
|---|---|
| `POINT_SOURCE_UNSPECIFIED` | Point source unspecified. |
| `POINT_SOURCE_DEVELOPER_PROVIDED` | The `LatLng` was explicitly provided by the developer. |
| `POINT_SOURCE_CALCULATED_FROM_PLACE` | The `LatLng` was calculated from the provided place. |

## TerminalPointId

> [!WARNING]
> This item is deprecated!

Deprecated: TerminalPoints are no longer supported in Fleet Engine. Use `TerminalLocation.point` instead.

| JSON representation |
|---|
| ``` { "value": string, // Union field `Id` can be only one of the following: "placeId": string, "generatedId": string // End of list of possible types for union field `Id`. } ``` |

| Fields ||
|---|---|
| `value (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated. |
| Union field `Id`. Deprecated. `Id` can be only one of the following: ||
| `placeId (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated. |
| `generatedId (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated. |