Find nearby places for a given location.
HTTP request
POST https://locationselection.googleapis.com/v1beta:findNearbyPlaces
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 where places need to be found. |
maxResults |
Required. Maximum number of results to be returned. Must be greater than 0. |
wifiAccessPoints[] |
WiFi Access points around the request location. Used to provide higher quality search results. |
Response body
If successful, the response body contains data with the following structure:
Find nearby places for a given location response message.
JSON representation |
---|
{
"placeResults": [
{
object ( |
Fields | |
---|---|
placeResults[] |
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. |