Index
LocationSelectionBeta
(interface)Address
(message)AddressComponent
(message)Compound
(message)CompoundTypeEnums
(message)CompoundTypeEnums.CompoundType
(enum)Entrance
(message)FindNearbyPlacesRequest
(message)FindNearbyPlacesResponse
(message)FindPickupPointsForLocationRequest
(message)FindPickupPointsForLocationResponse
(message)FindPickupPointsForPlaceRequest
(message)FindPickupPointsForPlaceResponse
(message)FormattedAddress
(message)Geometry
(message)LocalizationPreferences
(message)PickupPoint
(message)PickupPointOrderEnums
(message)PickupPointOrderEnums.PickupPointOrder
(enum)PickupPointResult
(message)Place
(message)PlacePickupPointResult
(message)PlaceResult
(message)TrafficRestrictionEnums
(message)TrafficRestrictionEnums.TrafficRestriction
(enum)TravelDetail
(message)TravelModeEnums
(message)TravelModeEnums.TravelMode
(enum)WiFiAccessPoint
(message)
LocationSelectionBeta
The service for getting nearby places and associated pickup and drop off points.
FindNearbyPlaces |
---|
Find nearby places for a given location. |
FindPickupPointsForLocation |
---|
Find pickup points for a given location. |
FindPickupPointsForPlace |
---|
Find pickup points for a given place. |
Address
Address of a place.
Fields | |
---|---|
formatted_address |
A full, human-readable address for this place. |
address_components[] |
A list of address components. |
AddressComponent
An address component that describes one part of the address.
Fields | |
---|---|
component_text |
The name of this component describing part of the address. Examples include "California", "Amphitheatre Parkway". |
component_text_short_form |
The short form of the component text. Examples include "CA" for "California", and "US" for "United States". |
types[] |
The types of this component describing part of the address. For a list of supported types, see https://developers.google.com/places/web-service/supported_types#table2 |
Compound
Compound associated with a place.
Fields | |
---|---|
type |
Type of compound. |
geometry |
The geometry associated with the compound. |
entrances[] |
List of entrances associated with the compound. |
CompoundTypeEnums
The types of compounds
CompoundType
Value of the compound type.
Enums | |
---|---|
COMPOUND_TYPE_UNSPECIFIED |
Compound Type unknown. |
SECTION |
Compound section. https://support.google.com/mapskb/answer/7054299 |
BUILDING |
Compound building. https://support.google.com/mapskb/answer/7013011 |
GROUNDS |
Compound grounds. https://support.google.com/mapskb/answer/7046859 |
Entrance
Entrance of a place.
Fields | |
---|---|
location |
The location of the entrance. |
FindNearbyPlacesRequest
Find nearby places request message.
Fields | |
---|---|
localization_preferences |
Required. Preferences used for localizing the texts in response, for example, name and address. |
search_location |
Required. Location where places need to be found. |
max_results |
Required. Maximum number of results to be returned. Must be greater than 0. |
wifi_access_points[] |
WiFi Access points around the request location. Used to provide higher quality search results. |
FindNearbyPlacesResponse
Find nearby places for a given location response message.
Fields | |
---|---|
place_results[] |
Ordered list of places found. May be empty if no places were found around the request location. Ordering is based on a combination of likelihood and distance. |
FindPickupPointsForLocationRequest
FindPickupPointsForLocation request message.
Fields | |
---|---|
localization_preferences |
Required. Preferences used for localizing the texts in response, for example, name and address. |
search_location |
Required. Location to use for searching pickup points and calculating distances and ETAs to pickup points. |
order_by |
Required. Ordering to use when returning results. |
destination |
Customer's intended destination location. Set when requesting pickup points sorted by destination ETA. |
max_results |
Required. Maximum number of results to be returned. Must be greater than 0. |
travel_modes[] |
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. |
compute_walking_eta |
If true, the walking ETA from the search location to the pickup point is computed. |
compute_driving_eta |
If true and destination is specified, the driving ETA from the pickup point to the destination is computed. |
wifi_access_points[] |
WiFi Access points around the search location. Used to provide higher quality search results. |
FindPickupPointsForLocationResponse
Find pickup points for location response message.
Fields | |
---|---|
place_pickup_point_results[] |
Nearby pickup points with associated place id. Results in this list are ordered as per criteria given in the request. Number of results in 'place_pickup_point_results' may exceed number of results in 'place_results'. |
place_results[] |
Details about the places associated with nearby pickup points. Results in this list are not ordered. |
FindPickupPointsForPlaceRequest
FindPickupPointsForPlace request message.
Fields | |
---|---|
place_id |
Required. Place ID of the place for which pick-up points are requested. |
localization_preferences |
Required. Preferences used for localizing the texts in response, for example, name and address. |
search_location |
Location to use for searching pickup points and calculating distances and ETAs to pickup points. If not set, the location of the place associated with the given place id is used. |
order_by |
Required. Ordering to use when returning results. |
destination |
Customer's intended destination location. Set if requesting pickup points to be ordered by destination ETA. |
max_results |
Required. Maximum number of results to be returned. Must be greater than 0. |
travel_modes[] |
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. |
compute_walking_eta |
If true, the walking ETA from the search location to the pickup point is computed. |
compute_driving_eta |
If true and destination is specified, the driving ETA from the pickup point to the destination is computed. |
FindPickupPointsForPlaceResponse
Find pickup points for place response message.
Fields | |
---|---|
pickup_point_results[] |
Pick-up points that match the request criteria. May be empty if no pickup points match the request criteria. |
place_result |
Place associated with given place id in request. |
FormattedAddress
A full, human-readable address for the entity containing this message.
Fields | |
---|---|
lines[] |
The lines of text that describe the address. At least one line must be present. |
Geometry
Geometry of a place.
Fields | |
---|---|
location |
Central point of the entity containing this message. |
viewport |
A viewport suitable for displaying the place on an average-sized map. |
display_boundary |
Specifies a polygon using the using the GeoJSON Polygon format |
LocalizationPreferences
A full, human-readable address for the entity containing this message.
Fields | |
---|---|
language_code |
Required. The BCP-47 language tag used for localizing the texts. Examples of language tag include, "en-US", "hi-IN", "fr-CA", etc. |
region_code |
Required. The Unicode country/region code (CLDR) of the location from which the request is coming from, such as "US" and "419". For more information, see http://www.unicode.org/reports/tr35/#unicode_region_subtag. |
PickupPoint
Details about a pickup or dropoff point.
Fields | |
---|---|
id |
A unique ID for the pickup point. Must be present. |
display_name |
Short, human-readable name of the pickup point. Localized as per preference provided in request. |
address |
Address of the pickup point. |
description |
A longer description of the pickup point, which may include how to get to the location. |
location |
Location of the pickup point; where a rider or receiver meets the driver. Must be present. |
PickupPointOrderEnums
Set of values that specify the sorting order of matching pickup points.
PickupPointOrder
Value of the pickup point order.
Enums | |
---|---|
PICKUP_POINT_ORDER_UNSPECIFIED |
Pickup point order unspecified. Default to DISTANCE_FROM_ORIGIN. |
DISTANCE_FROM_SEARCH_LOCATION |
Ascending order of straight-line distance from the search location to the returned pickup point. |
WALKING_ETA_FROM_SEARCH_LOCATION |
Ascending order by the consumer's walking time from the search location to the pickup point. |
DRIVING_ETA_FROM_PICKUP_POINT_TO_DESTINATION |
Ascending order by driving ETA from pickup point to the consumer's destination. This mode can only be used when a destination is set and compute_driving_eta is true. When multiple travel_modes are give in request, the ordering is based on the first travel_mode in the request. |
PickupPointResult
Details about a pickup point search result.
Fields | |
---|---|
pickup_point |
The actual pickup point that matches the request. |
distance_meters |
The straight-line distance from this pickup point to the search_location specified in the request. |
travel_details[] |
The details associated with travel to and from this pickup point for each requested travel mode. |
Place
Details about a place.
Fields | |
---|---|
place_id |
Place ID of the place. A place ID is text that uniquely identifies a place. https://developers.google.com/places/web-service/place-id |
display_name |
Name of the place localized. Localized as per preference provided in request. |
language_code |
Language code of the text fields associated with the place. For example, "name" and "address". |
address |
Address of the place. |
geometry |
Geometry of the place. |
types[] |
A set of type tags for this result. For example, "political" and "locality". https://developers.google.com/places/web-service/supported_types |
associated_compounds[] |
The compounds associated with the place. |
PlacePickupPointResult
Pickup points with associated place ID.
Fields | |
---|---|
pickup_point_result |
Details about the pickup point. Must be present. |
associated_place_id |
Place ID of the associated place. |
PlaceResult
Details about a place search result.
Fields | |
---|---|
place |
Details about a place. |
distance_meters |
The straight-line distance from the search location to the place geometry or center. |
TrafficRestrictionEnums
Traffic restriction types for a location.
TrafficRestriction
Value of the traffic restriction.
Enums | |
---|---|
TRAFFIC_RESTRICTION_UNSPECIFIED |
The restriction is not unspecified. |
NO_RESTRICTION |
No traffic restrictions are applied. |
OTHER_RESTRICTION |
Some traffic restrictions may apply, such as the road is private or there is a fee to access associated location. |
TravelDetail
The details associated with the travel.
Fields | |
---|---|
travel_mode |
The travel mode under which the ETA is computed. |
estimated_arrival_time |
The estimated time of arrival. Walking ETA is calculated from search location to pickup point location when compute_walking_eta is set in the request. Driving ETA is calculated from pickup point location to the destination for each non-pedestrian requested travel mode when compute_driving_eta and destination is set in the request. Driving ETA is calculated with traffic, and is NOT subject to congestion restrictions. |
traffic_restriction |
The restriction that applies to the travel mode. |
TravelModeEnums
The list of travel modes available for travel to a location.
TravelMode
Value of the travel mode.
Enums | |
---|---|
TRAVEL_MODE_UNSPECIFIED |
The travel mode is not specified. |
WALKING |
Walking, used for pedestrians. |
DRIVING |
Driving, used for passenger cars. |
TWO_WHEELER |
Motored two-wheeler (such as a motorcycle or moped). |
WiFiAccessPoint
WiFi access point information.
Fields | |
---|---|
mac_address |
The MAC address of the access point. |
strength_dbm |
The signal strength of the access point, in dBm. |