SearchByTextResponse

public abstract class SearchByTextResponse implements SearchResponse


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 @Nullable Pagination

Returns the Pagination used to fetch the next page of results.

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.

abstract @Nullable Uri

A link to search with the given query on Google Maps.

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)

getPagination

public abstract @Nullable Pagination getPagination()

Returns the Pagination used to fetch the next page of results.

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.

getSearchUri

public abstract @Nullable Uri getSearchUri()

A link to search with the given query on Google Maps.

newInstance

public static SearchByTextResponse newInstance(List<Place> places)

Returns a SearchByTextResponse with the given list ofPlaces.