com.google.maps

Class PlacesApi

  • java.lang.Object
    • com.google.maps.PlacesApi


  • public class PlacesApiextends java.lang.Object
    Performs a text search for places. The Google Places API enables you to get data from the same database used by Google Maps and Google+ Local. Places features more than 100 million businesses and points of interest that are updated frequently through owner-verified listings and user-moderated contributions.

    See also: Places API Web Service documentation.

    • Method Detail

      • textSearchQuery

        public static TextSearchRequest textSearchQuery(GeoApiContext context,                                                java.lang.String query)
        Perform a search for Places using a text query ? for example "pizza in New York" or "shoe stores near Ottawa".
        Parameters:
        context - The context on which to make Geo API requests.
        query - The text string on which to search, for example: "restaurant".
        Returns:
        Returns a TextSearchRequest that can be configured and executed.
      • textSearchNextPage

        public static TextSearchRequest textSearchNextPage(GeoApiContext context,                                                   java.lang.String nextPageToken)
        Retrieve the next page of Text Search results. The nextPageToken, returned in a PlaceSearchResponse when there are more pages of results, encodes all of the original Text Search Request parameters, and are thus not required on this call.
        Parameters:
        context - The context on which to make Geo API requests.
        nextPageToken - The nextPageToken returned as part of a PlaceSearchResponse.
        Returns:
        Returns a TextSearchRequest that can be executed.
      • placeDetails

        public static PlaceDetailsRequest placeDetails(GeoApiContext context,                                               java.lang.String placeId)
        Request the details of a Place. We are only enabling looking up Places by placeId as the older Place identifier - reference - is deprecated. Please see the deprecation warning.
        Parameters:
        context - The context on which to make Geo API requests.
        placeId - The PlaceID to request details on.
        Returns:
        Returns a PlaceDetailsRequest that you can configure and execute.
      • photo

        public static PhotoRequest photo(GeoApiContext context,                                 java.lang.String photoReference)
        Request a Photo from a PhotoReference.

        Note: If you want to use a Photo in a web browser, please retrieve the photos for a place via our JavaScript Places Library. Likewise, on Android, Places Photos can be retrieved using the Google Places API for Android.

        Parameters:
        context - The context on which to make Geo API requests.
        photoReference - The reference to the photo to retrieve.
        Returns:
        Returns a PhotoRequest that you can execute.
      • queryAutocomplete

        public static QueryAutocompleteRequest queryAutocomplete(GeoApiContext context,                                                         java.lang.String input)
        Query Autocomplete allows you to add on-the-fly geographic query predictions to your application.
        Parameters:
        context - The context on which to make Geo API requests.
        input - input is the text string on which to search.
        Returns:
        Returns a QueryAutocompleteRequest that you can configure and execute.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14