Method: findTerminalPointsForPlace

Deprecated:

HTTP request

POST https://fleetengine.googleapis.com/v1:findTerminalPointsForPlace

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "header": {
    object (RequestHeader)
  },
  "tripId": string,
  "placeId": string,
  "searchLocation": {
    object (LatLng)
  },
  "destination": {
    object (LatLng)
  },
  "orderBy": enum (TerminalPointOrder),
  "maxResults": integer,
  "travelModes": [
    enum (TerminalPointTravelMode)
  ],
  "computeWalkingEta": boolean,
  "computeDrivingEta": boolean
}
Fields
header

object (RequestHeader)

Required. The standard Fleet Engine request header.

tripId

string

Trip ID used in other Local Rides and Deliveries APIs.

placeId

string

Required. Place ID of the place for which terminal points are requested.

searchLocation

object (LatLng)

Required. Location to use for calculating distances for matching terminal points.

destination

object (LatLng)

Customer's intended destination location. Required when requesting terminal points sorted by destination ETA.

orderBy

enum (TerminalPointOrder)

Required. Ordering to use when returning results.

maxResults

integer

Required. Maximum number of results to be returned. Must be greater than 0.

travelModes[]

enum (TerminalPointTravelMode)

Required. Only terminal points that allow the specified travel mode are returned. At least one mode must be present.

computeWalkingEta

boolean

If true, the walkingEtaFromOrigin in TerminalPointResponse is computed. Must be set to true when requesting terminal points sorted by walking ETA.

computeDrivingEta

boolean

If true, and if the destination is specified, then the TerminalPointResponse.driving_eta_matches (from terminal point to destination) are computed. Must be set to true when requesting terminal points sorted by destination ETA.

Response body

If successful, the response body contains data with the following structure:

Deprecated:

JSON representation
{
  "terminalPointResponses": [
    {
      object (TerminalPointResponse)
    }
  ]
}
Fields
terminalPointResponses[]

object (TerminalPointResponse)

Terminal points that match the request criteria. May be empty if no terminal points match the request criteria.