com.google.maps

Class GeocodingApiRequest

  • java.lang.Object
    • com.google.maps.GeocodingApiRequest
  • All Implemented Interfaces:
    PendingResult<GeocodingResult[]>


    public class GeocodingApiRequestextends java.lang.Object
    Request for the Geocoding API.
    • Constructor Detail

      • GeocodingApiRequest

        public GeocodingApiRequest(GeoApiContext context)
    • Method Detail

      • validateRequest

        protected void validateRequest()
      • address

        public GeocodingApiRequest address(java.lang.String address)
        Create a forward geocode for address.
      • place

        public GeocodingApiRequest place(java.lang.String placeId)
        Create a forward geocode for placeId.
      • bounds

        public GeocodingApiRequest bounds(LatLng southWestBound,                                  LatLng northEastBound)
        Set the bounding box of the viewport within which to bias geocode results more prominently. This parameter will only influence, not fully restrict, results from the geocoder. (

        For more information see Viewports documentation.

      • region

        public GeocodingApiRequest region(java.lang.String region)
        Set the region code, specified as a ccTLD ("top-level domain") two-character value. This parameter will only influence, not fully restrict, results from the geocoder.

        For more information see Region Codes.

      • resultType

        public GeocodingApiRequest resultType(AddressType... resultTypes)
        Set the result type. Specifying a type will restrict the results to this type. If multiple types are specified, the API will return all addresses that match any of the types.
      • locationType

        public GeocodingApiRequest locationType(LocationType... locationTypes)
        Set the location type. Specifying a type will restrict the results to this type. If multiple types are specified, the API will return all addresses that match any of the types.
      • 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