枚举 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.
-
嵌套类概要
-
枚举常量概要
枚举常量 枚举常量 说明 APPROXIMATERestricts the results to those that are characterized as approximate.GEOMETRIC_CENTERRestricts the results to geometric centers of a location such as a polyline (for example, a street) or polygon (region).RANGE_INTERPOLATEDRestricts the results to those that reflect an approximation (usually on a road) interpolated between two precise points (such as intersections).ROOFTOPRestricts the results to addresses for which we have location information accurate down to street address precision.UNKNOWNIndicates an unknown location type returned by the server. -
方法概要
修饰符和类型 方法 说明 java.lang.StringtoUrlValue()static LocationTypevalueOf(java.lang.String name)返回带有指定名称的该类型的枚举常量。static LocationType[]values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
ROOFTOP
Restricts the results to addresses for which we have location information accurate down to street address precision. -
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
Restricts the results to geometric centers of a location such as a polyline (for example, a street) or polygon (region). -
APPROXIMATE
Restricts the results to those that are characterized as approximate. -
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
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
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).
-