SearchByTextResponse

public abstract class SearchByTextResponse implements Response


Response for SearchByTextRequest.

Summary

Nested types

public abstract class SearchByTextResponse.Builder

Builder for SearchByTextResponse.

Public constructors

Public methods

static SearchByTextResponse.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 SearchByTextResponse

Returns a SearchByTextResponse with the given list ofPlaces.

Public constructors

SearchByTextResponse

public SearchByTextResponse()

Public methods

builder

public static SearchByTextResponse.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 SearchByTextResponse newInstance(List<Place> places)

Returns a SearchByTextResponse with the given list ofPlaces.