com.google.maps

Class QueryAutocompleteRequest

  • java.lang.Object
    • com.google.maps.QueryAutocompleteRequest
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      Tawait()
      Performs the request synchronously.
      TawaitIgnoreError()
      Performs the request synchronously, ignoring exceptions while performing the request and errors returned by the server.
      voidcancel()
      Attempt to cancel the request.
      Achannel(java.lang.String channel)
      A channel to pass with the request.
      QueryAutocompleteRequestinput(java.lang.String input)
      input is the text string on which to search.
      Alanguage(java.lang.String language)
      The language in which to return results.
      QueryAutocompleteRequestlocation(LatLng location)
      location is the point around which you wish to retrieve place information.
      QueryAutocompleteRequestoffset(int offset)
      offset is the character position in the input term at which the service uses text for predictions.
      protected Aparam(java.lang.String key, java.lang.String val) 
      protected Aparam(java.lang.String key, com.google.maps.internal.StringJoin.UrlValue val) 
      protected java.util.Map<java.lang.String,java.lang.String>params() 
      QueryAutocompleteRequestradius(int radius)
      radius is the distance (in meters) within which to return place results.
      voidsetCallback(PendingResult.Callback<T> callback)
      Performs the request asynchronously, calling onResult or onFailure after the request has been completed.
      protected voidvalidateRequest() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryAutocompleteRequest

        protected QueryAutocompleteRequest(GeoApiContext context)
    • Method Detail

      • validateRequest

        protected void validateRequest()
      • input

        public QueryAutocompleteRequest input(java.lang.String input)
        input is the text string on which to search. The Places service will return candidate matches based on this string and order results based on their perceived relevance.
      • offset

        public QueryAutocompleteRequest offset(int offset)
        offset is the character position in the input term at which the service uses text for predictions. For example, if the input is 'Googl' and the completion point is 3, the service will match on 'Goo'. The offset should generally be set to the position of the text caret. If no offset is supplied, the service will use the entire term.
      • radius

        public QueryAutocompleteRequest radius(int radius)
        radius is the distance (in meters) within which to return place results. Note that setting a radius biases results to the indicated area, but may not fully restrict results to the specified area.
      • await

        public final T await()              throws java.lang.Exception
        Description copied from interface: PendingResult
        Performs the request synchronously.
        Specified by:
        await in interface PendingResult<T>
        Returns:
        The result.
        Throws:
        java.lang.Exception
      • awaitIgnoreError

        public final T awaitIgnoreError()
        Description copied from interface: PendingResult
        Performs the request synchronously, ignoring exceptions while performing the request and errors returned by the server.
        Specified by:
        awaitIgnoreError in interface PendingResult<T>
        Returns:
        The result, or null if there was any error or exception ignored.
      • cancel

        public final void cancel()
        Description copied from interface: PendingResult
        Attempt to cancel the request.
        Specified by:
        cancel in interface PendingResult<T>
      • param

        protected A param(java.lang.String key,                  java.lang.String val)
      • param

        protected A param(java.lang.String key,                  com.google.maps.internal.StringJoin.UrlValue val)
      • params

        protected java.util.Map<java.lang.String,java.lang.String> params()
      • language

        public final A language(java.lang.String language)
        The language in which to return results. Note that we often update supported languages so this list may not be exhaustive.
        Parameters:
        language - The language code, e.g. "en-AU" or "es"
        See Also:
        List of supported domain languages
      • channel

        public A channel(java.lang.String channel)
        A channel to pass with the request. channel is used by Google Maps API for Work users to be able to track usage across different applications with the same clientID. See: https://developers.google.com/maps/documentation/business/clientside/quota
        Parameters:
        channel - String to pass with the request for analytics


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