Find pickup points for a given location.
HTTP request
POST https://locationselection.googleapis.com/v1beta:findPickupPointsForLocation
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "localizationPreferences": { object ( |
Fields | |
---|---|
localizationPreferences |
Required. Preferences used for localizing the texts in response, for example, name and address. |
searchLocation |
Required. Location to use for searching pickup points and calculating distances and ETAs to pickup points. |
orderBy |
Required. Ordering to use when returning results. |
destination |
Customer's intended destination location. Set when requesting pickup points sorted by destination ETA. |
maxResults |
Required. Maximum number of results to be returned. Must be greater than 0. |
travelModes[] |
Required. Only pickup points that allow at least one of the specified travel mode are returned. Supported travel modes: DRIVING and TWO_WHEELER. At least one mode must be specified. |
computeWalkingEta |
If true, the walking ETA from the search location to the pickup point is computed. |
computeDrivingEta |
If true and destination is specified, the driving ETA from the pickup point to the destination is computed. |
wifiAccessPoints[] |
WiFi Access points around the search location. Used to provide higher quality search results. |
Response body
If successful, the response body contains data with the following structure:
Find pickup points for location response message.
JSON representation |
---|
{ "placePickupPointResults": [ { object ( |
Fields | |
---|---|
placePickupPointResults[] |
Nearby pickup points with associated place id. Results in this list are ordered as per criteria given in the request. Number of results in 'placePickupPointResults' may exceed number of results in 'placeResults'. |
placeResults[] |
Details about the places associated with nearby pickup points. Results in this list are not ordered. |
PlacePickupPointResult
Pickup points with associated place ID.
JSON representation |
---|
{
"pickupPointResult": {
object ( |
Fields | |
---|---|
pickupPointResult |
Details about the pickup point. Must be present. |
associatedPlaceId |
Place ID of the associated place. |