SearchNearbyResponse

public abstract class SearchNearbyResponse implements Response


Response for SearchNearbyRequest.

Summary

Nested types

public abstract class SearchNearbyResponse.Builder

Builder for SearchNearbyResponse.

Public constructors

Public methods

static SearchNearbyResponse.Builder
builder(List<Place> places)
abstract List<Place>

Returns the list of places.

abstract @Nullable List<RoutingSummary>

A list of routing summaries where each entry associates to the corresponding place in the same index in the places field.

static SearchNearbyResponse

Returns a SearchNearbyResponse with the given list ofPlaces.

Public constructors

SearchNearbyResponse

public SearchNearbyResponse()

Public methods

builder

public static SearchNearbyResponse.Builder builder(List<Place> places)

getPlaces

public abstract List<PlacegetPlaces()

Returns the list of places.

getRoutingSummaries

public abstract @Nullable List<RoutingSummarygetRoutingSummaries()

A list of routing summaries where each entry associates to the corresponding place in the same index in the places field. If the routing summary is not available for one of the places, it will contain an empty entry. This list will have as many entries as the list of places if requested.

newInstance

public static SearchNearbyResponse newInstance(List<Place> places)

Returns a SearchNearbyResponse with the given list ofPlaces.