searchNearbyRequest

fun searchNearbyRequest(locationRestriction: LocationRestriction, placeFields: List<Place.Field>, actions: SearchNearbyRequest.Builder.() -> Unit? = null): SearchNearbyRequest

Deprecated

Use the version in the Places SDK instead.

Replace with

import com.google.android.libraries.places.api.net.kotlin.searchNearbyRequest
searchNearbyRequest(locationRestriction, placeFields, actions)

Builds a new SearchNearbyRequest to find the current place.

Return

the constructed SearchNearbyRequest

Parameters

locationRestriction

limits the scope of the search to a specific area.

placeFields

the fields of the places to be returned

actions

the actions to apply to the SearchNearbyRequest.Builder