class Places extends Resource (View source)

The "places" collection of methods.

Typical usage is:

 $placesService = new Google\Service\MapsPlaces(...);
 $places = $placesService->places;

Methods

autocomplete(GoogleMapsPlacesV1AutocompletePlacesRequest $postBody, array $optParams = [])

Returns predictions for the given input. (places.autocomplete)

get(string $name, array $optParams = [])

Get the details of a place based on its resource name, which is a string in the places/{place_id} format. (places.get)

searchNearby(GoogleMapsPlacesV1SearchNearbyRequest $postBody, array $optParams = [])

Search for places near locations. (places.searchNearby)

searchText(GoogleMapsPlacesV1SearchTextRequest $postBody, array $optParams = [])

Text query based place search. (places.searchText)

Details

GoogleMapsPlacesV1AutocompletePlacesResponse autocomplete(GoogleMapsPlacesV1AutocompletePlacesRequest $postBody, array $optParams = [])

Returns predictions for the given input. (places.autocomplete)

Parameters

GoogleMapsPlacesV1AutocompletePlacesRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleMapsPlacesV1AutocompletePlacesResponse

Exceptions

Exception

GoogleMapsPlacesV1Place get(string $name, array $optParams = [])

Get the details of a place based on its resource name, which is a string in the places/{place_id} format. (places.get)

Parameters

string $name

Required. The resource name of a place, in the places/{place_id} format.

array $optParams

Optional parameters.

Return Value

GoogleMapsPlacesV1Place

Exceptions

Exception

GoogleMapsPlacesV1SearchNearbyResponse searchNearby(GoogleMapsPlacesV1SearchNearbyRequest $postBody, array $optParams = [])

Search for places near locations. (places.searchNearby)

Parameters

GoogleMapsPlacesV1SearchNearbyRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleMapsPlacesV1SearchNearbyResponse

Exceptions

Exception

GoogleMapsPlacesV1SearchTextResponse searchText(GoogleMapsPlacesV1SearchTextRequest $postBody, array $optParams = [])

Text query based place search. (places.searchText)

Parameters

GoogleMapsPlacesV1SearchTextRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleMapsPlacesV1SearchTextResponse

Exceptions

Exception