Package ai.nextbillion.maps.model
Enum LocationType
java.lang.Object
java.lang.Enum<LocationType>
ai.nextbillion.maps.model.LocationType
- All Implemented Interfaces:
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.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description 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. -
Method Summary
Modifier and Type Method Description java.lang.StringtoUrlValue()static LocationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LocationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toUrlValue
public java.lang.String toUrlValue()- Specified by:
toUrlValuein interfaceStringJoin.UrlValue- Returns:
- the object, represented as a URL value (not URL encoded).
-