Index
DestinationService
(interface)Destination
(message)Entrance
(message)Entrance.Tag
(enum)Landmark
(message)Landmark.Tag
(enum)NavigationPoint
(message)NavigationPoint.TravelMode
(enum)NavigationPoint.Usage
(enum)PlaceView
(message)PlaceView.StructureType
(enum)SearchDestinationsRequest
(message)SearchDestinationsRequest.AddressQuery
(message)SearchDestinationsRequest.LocationQuery
(message)SearchDestinationsResponse
(message)
DestinationService
A service for retrieving destinations.
A destination provides hierarchical context about a place, which allows you to, for example, find apartment buildings within a larger apartment complex and vice versa. It also provides navigation points suitable for use cases such as ridesharing or delivery.
SearchDestinations |
---|
This method performs a destination lookup and returns a list of destinations.
|
Destination
A destination. This includes the primary place, related places, entrances, and navigation points.
Fields | |
---|---|
primary |
The primary place identified by the |
containing_places[] |
The less precise places that the primary place is contained by. For example, the apartment complex that contains this building. |
sub_destinations[] |
More precise sub-destinations of the primary place. For example, units contained in a building. Note: compared to the SubDestination returned by the Places API, this list of sub-destinations is more exhaustive, and each sub-destination contains more information. |
landmarks[] |
Landmarks that can be used to communicate where the destination is or help with arrival. |
entrances[] |
Entrances for this destination. |
navigation_points[] |
Navigation points for this destination. |
Entrance
An entrance is a single latitude/longitude coordinate pair that defines the location of an entry and exit point for a place.
Fields | |
---|---|
location |
The location of the entrance. |
tags[] |
A list of tags that describe the entrance. |
place |
The structure this entrance is physically located on, in |
Tag
Characteristics that describe an entrance.
Enums | |
---|---|
TAG_UNSPECIFIED |
Not used. |
PREFERRED |
The entrance likely provides physical access to the primary place in the returned destination. A place can have multiple preferred entrances. If an entrance does not have this tag, it means the entrance is physically on the same building as the primary place, but does not necessarily provide access to the place. For example, if the primary place is a restaurant in a strip mall, the "PREFERRED" entrances will be the ones that likely lead into the restaurant itself, while the other returned entrances will be other entrances for the building, such as entrances into other restaurants in the strip mall. If the primary place is a building itself, the Note: a |
Landmark
Landmarks are used to communicate where the destination is or help with arriving at the destination.
Fields | |
---|---|
tags[] |
Tags that describe how the landmark can be used in the context of the destination. |
Union field landmark . The landmark. landmark can be only one of the following: |
|
place |
The place that represents this landmark. |
Tag
The list of all possible tags that describe how a landmark can be used in the context of a destination.
If an address has both the ADDRESS
and ARRIVAL
tags, it means the landmark is both locally prominent and close to the destination.
Enums | |
---|---|
TAG_UNSPECIFIED |
Not used. |
ADDRESS |
A locally prominent place that can be used to identify the general location of the destination. Typically within a few hundred meters of the destination. These are similar to the landmarks returned by the Address Descriptors feature of the Geocoding API: https://developers.google.com/maps/documentation/geocoding/address-descriptors/requests-address-descriptors. |
ARRIVAL |
A place that can be used to help arrive at the destination. Useful for navigation once you are close to the destination. For example, this landmark might be a place that is across the street from the destination. A landmark with this tag is typically closer to the destination than landmarks with the ADDRESS tag. |
PlaceView
Represents a view of a Place in the Places API. It also provides additional information specific to destinations, such as the structure type and the display polygon.
In some cases, a PlaceView
with the same place ID might differ from what is being returned by the Places API for the types
and display_name
fields.
Fields | |
---|---|
place |
This place's resource name, in |
display_name |
Human readable place description. For example, "Gate B", "McDonalds" |
primary_type |
The primary place type of this place. See https://developers.google.com/maps/documentation/places/web-service/place-types for the list of possible values. Note: This field is not always populated. Be prepared to use the |
types[] |
All associated place types of this place. See https://developers.google.com/maps/documentation/places/web-service/place-types for the list of possible values. |
formatted_address |
One line address. |
postal_address |
Structured address. |
structure_type |
The type of structure corresponding to this place. |
location |
The location of this place. For places with display polygons, this can represent a good spot to put a marker on the map. |
display_polygon |
The polygon outline of the place in GeoJSON format, using the RFC 7946 format: https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.6. Note: The RFC 7946 format supports MultiPolygons, so one |
StructureType
The type of structure that this place represents.
Enums | |
---|---|
STRUCTURE_TYPE_UNSPECIFIED |
Not used. |
POINT |
A point location. |
SECTION |
A sub-section of a building. |
BUILDING |
A building. |
GROUNDS |
A large area that typically contains multiple buildings, such as a university campus, an apartment complex, or a shopping mall. |
SearchDestinationsRequest
Request message for DestinationService.SearchDestinations.
Fields | |
---|---|
travel_modes[] |
Optional. The travel modes to filter navigation points for. This influences the |
language_code |
Optional. Language in which the results should be returned. |
region_code |
Optional. Region code. The region code, specified as a ccTLD ("top-level domain") two-character value. The parameter affects results based on applicable law. This parameter also influences, but not fully restricts, results from the service. |
Union field The destinations are built around the specified primary query. Note: only places and addresses that can have a navigational destination are supported. For example, a place that represents a house or an apartment complex can be used as the primary query, but places that represent a locality or an administrative area cannot be used as the primary query. |
|
place |
The resource name of a place, in |
address_query |
A street address. |
location_query |
A precise location. |
AddressQuery
The street address that you want to search for. Specify addresses in accordance with the format used by the national postal service of the country concerned.
Fields | |
---|---|
Union field kind . The address query. kind can be only one of the following: |
|
address |
A street address in postal address format. |
address_query |
A street address formatted as a single line. |
LocationQuery
A location query to identify a nearby primary destination.
Note: if the location query is within a building that contains subpremises, it is possible that the returned primary place is a subpremise. In these cases, the containing_places field will include the building.
Fields | |
---|---|
Union field kind . The location query. kind can be only one of the following: |
|
location |
A precise LatLng location. |
SearchDestinationsResponse
Response message for DestinationService.SearchDestinations.
Fields | |
---|---|
destinations[] |
A list of destinations. The service returns one result if a primary destination can be unambiguously identified from the primary query. Otherwise, the service might return multiple results for disambiguation or zero results. |