Enum LocationType

  • All Implemented Interfaces:
    com.google.maps.internal.StringJoin.UrlValue, java.io.Serializable, java.lang.Comparable<LocationType>

    public enum LocationType
    extends java.lang.Enum<LocationType>
    implements com.google.maps.internal.StringJoin.UrlValue
    Location types for a reverse geocoding request. Please see Reverse Geocoding for more detail.
    • 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

      All Methods Static Methods Instance Methods Concrete Methods 
      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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • values

        public static LocationType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LocationType c : LocationType.values())
            System.out.println(c);
        
        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 com.google.maps.internal.StringJoin.UrlValue