类 FindPlaceFromTextRequest

java.lang.Object
ai.nextbillion.maps.FindPlaceFromTextRequest
所有已实现的接口:
PendingResult<FindPlaceFromText>

public class FindPlaceFromTextRequest
extends java.lang.Object
  • 构造器详细资料

  • 方法详细资料

    • input

      public FindPlaceFromTextRequest input​(java.lang.String input)
      The text input specifying which place to search for (for example, a name, address, or phone number).
      参数:
      input - The text input.
      返回:
      Returns FindPlaceFromTextRequest for call chaining.
    • inputType

      The type of input.
      参数:
      inputType - The input type.
      返回:
      Returns FindPlaceFromTextRequest for call chaining.
    • fields

      The fields specifying the types of place data to return.
      参数:
      fields - The fields to return.
      返回:
      Returns FindPlaceFromTextRequest for call chaining.
    • locationBias

      public FindPlaceFromTextRequest locationBias​(FindPlaceFromTextRequest.LocationBias locationBias)
      Prefer results in a specified area, by specifying either a radius plus lat/lng, or two lat/lng pairs representing the points of a rectangle.
      参数:
      locationBias - The location bias for this request.
      返回:
      Returns FindPlaceFromTextRequest for call chaining.
    • validateRequest

      protected void validateRequest()
    • setCallback

      public final void setCallback​(PendingResult.Callback<T> callback)
      从接口复制的说明: PendingResult
      Performs the request asynchronously, calling onResult or onFailure after the request has been completed.
      指定者:
      setCallback 在接口中 PendingResult<T>
      参数:
      callback - The callback to call on completion.
    • await

      public final T await() throws ApiException, java.lang.InterruptedException, java.io.IOException
      从接口复制的说明: PendingResult
      Performs the request synchronously.
      指定者:
      await 在接口中 PendingResult<T>
      返回:
      The result.
      抛出:
      ApiException - Thrown if the API Returned result is an error.
      java.lang.InterruptedException - Thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted.
      java.io.IOException - Thrown when an I/O exception of some sort has occurred.
    • awaitIgnoreError

      public final T awaitIgnoreError()
      从接口复制的说明: PendingResult
      Performs the request synchronously, ignoring exceptions while performing the request and errors returned by the server.
      指定者:
      awaitIgnoreError 在接口中 PendingResult<T>
      返回:
      The result, or null if there was any error or exception ignored.
    • cancel

      public final void cancel()
      从接口复制的说明: PendingResult
      Attempts to cancel the request.
      指定者:
      cancel 在接口中 PendingResult<T>
    • param

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

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

      protected A param​(java.lang.String key, StringJoin.UrlValue val)
    • paramAddToList

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

      protected A paramAddToList​(java.lang.String key, StringJoin.UrlValue val)
    • params

      protected java.util.Map<java.lang.String,​java.util.List<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.
      参数:
      language - The language code, e.g. "en-AU" or "es".
      返回:
      Returns the request for call chaining.
      另请参阅:
      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 Premium Plan Usage Rates and Limits.
      参数:
      channel - String to pass with the request for analytics.
      返回:
      Returns the request for call chaining.
    • custom

      public A custom​(java.lang.String parameter, java.lang.String value)
      Custom parameter. For advanced usage only.
      参数:
      parameter - The name of the custom parameter.
      value - The value of the custom parameter.
      返回:
      Returns the request for call chaining.
    • context

      public A context​(java.lang.String context)