枚举 LocationType

java.lang.Object
java.lang.Enum<LocationType>
ai.nextbillion.maps.model.LocationType
所有已实现的接口:
StringJoin.UrlValue, java.io.Serializable, java.lang.Comparable<LocationType>, java.lang.constant.Constable

public enum LocationType
extends java.lang.Enum<LocationType>
implements StringJoin.UrlValue
Location types for a reverse geocoding request. Please see Reverse Geocoding for more detail.
  • 嵌套类概要

    从类继承的嵌套类/接口 java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • 枚举常量概要

    枚举常量 
    枚举常量 说明
    APPROXIMATE
    Restricts the results to those that are characterized as approximate.
    GEOMETRIC_CENTER
    Restricts the results to geometric centers of a location such as a polyline (for example, a street) or polygon (region).
    RANGE_INTERPOLATED
    Restricts the results to those that reflect an approximation (usually on a road) interpolated between two precise points (such as intersections).
    ROOFTOP
    Restricts the results to addresses for which we have location information accurate down to street address precision.
    UNKNOWN
    Indicates an unknown location type returned by the server.
  • 方法概要

    修饰符和类型 方法 说明
    java.lang.String toUrlValue()  
    static LocationType valueOf​(java.lang.String name)
    返回带有指定名称的该类型的枚举常量。
    static LocationType[] values()
    按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。

    从类继承的方法 java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    从类继承的方法 java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 枚举常量详细资料

    • ROOFTOP

      public static final LocationType ROOFTOP
      Restricts the results to addresses for which we have location information accurate down to street address precision.
    • RANGE_INTERPOLATED

      public static final LocationType RANGE_INTERPOLATED
      Restricts the results to those that reflect an approximation (usually on a road) interpolated between two precise points (such as intersections). An interpolated range generally indicates that rooftop geocodes are unavailable for a street address.
    • GEOMETRIC_CENTER

      public static final LocationType GEOMETRIC_CENTER
      Restricts the results to geometric centers of a location such as a polyline (for example, a street) or polygon (region).
    • APPROXIMATE

      public static final LocationType APPROXIMATE
      Restricts the results to those that are characterized as approximate.
    • UNKNOWN

      public static final LocationType UNKNOWN
      Indicates an unknown location type returned by the server. The Java Client for Google Maps Services should be updated to support the new value.
  • 方法详细资料

    • values

      public static LocationType[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static LocationType valueOf​(java.lang.String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      java.lang.NullPointerException - 如果参数为空值
    • toUrlValue

      public java.lang.String toUrlValue()
      指定者:
      toUrlValue 在接口中 StringJoin.UrlValue
      返回:
      the object, represented as a URL value (not URL encoded).