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

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    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.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toUrlValue()  
    static LocationType valueOf​(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.

    Methods inherited from class java.lang.Enum

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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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.
  • Method Details

    • values

      public static LocationType[] 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

      public static LocationType valueOf​(java.lang.String name)
      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 name
      java.lang.NullPointerException - if the argument is null
    • toUrlValue

      public java.lang.String toUrlValue()
      Specified by:
      toUrlValue in interface StringJoin.UrlValue
      Returns:
      the object, represented as a URL value (not URL encoded).