com.mapquest
Class MatchType

java.lang.Object
  extended bycom.mapquest.MatchType

public final class MatchType
extends java.lang.Object

Constants to specify the type of geocode results wanted.


Field Summary
static MatchType AA1
          Match Admin - Country
static MatchType AA2
          Match Admin - Division
static MatchType AA3
          Match Admin - State
static MatchType AA4
          Match Admin - County
static MatchType AA5
          Match Admin - City
static MatchType AA6
          Match Admin - Division (rarely used)
static MatchType AA7
          Match Admin - smallest division (rarely used)
static MatchType BLOCK
          Match Block
static MatchType INTR
          Match Intersection
static MatchType LOC
          Match Location
static MatchType MT_AA1
          Deprecated. Use AA1 instead.
static MatchType MT_AA2
          Deprecated. Use AA2 instead.
static MatchType MT_AA3
          Deprecated. Use AA3 instead.
static MatchType MT_AA4
          Deprecated. Use AA4 instead.
static MatchType MT_AA5
          Deprecated. Use AA5 instead.
static MatchType MT_AA6
          Deprecated. Use AA6 instead.
static MatchType MT_AA7
          Deprecated. Use AA7 instead.
static MatchType MT_BLOCK
          Deprecated. Use BLOCK instead.
static MatchType MT_INTR
          Deprecated. Use INTR instead.
static MatchType MT_LOC
          Deprecated. Use LOC instead.
static MatchType MT_NEARBLK
          Deprecated. Use NEARBLK instead.
static MatchType MT_PC1
          Deprecated. Use PC1 instead.
static MatchType MT_PC2
          Deprecated. Use PC2 instead.
static MatchType MT_PC3
          Deprecated. Use PC3 instead.
static MatchType MT_PC4
          Deprecated. Use PC4 instead.
static MatchType MT_POI
          Deprecated. Use POI instead.
static MatchType MT_REPBLK
          Deprecated. Use REPBLK instead.
static MatchType NEARBLK
          Match Block - Nearest numbered
static MatchType PC1
          Match Postal - Zip
static MatchType PC2
          Match Postal
static MatchType PC3
          Match Postal
static MatchType PC4
          Match Postal
static MatchType POI
          Match POI
static MatchType REPBLK
          Match Block - Representative (Centroid)
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
static MatchType from_int(int value)
          Deprecated. Use fromInt instead.
static MatchType fromInt(int value)
          Creates an object from an integer value.
 int hashCode()
          Returns a hash code for this MatchType.
 int intValue()
          Returns an int type representing this object.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MT_LOC

public static final MatchType MT_LOC
Deprecated. Use LOC instead.

Match Location


MT_INTR

public static final MatchType MT_INTR
Deprecated. Use INTR instead.

Match Intersection


MT_NEARBLK

public static final MatchType MT_NEARBLK
Deprecated. Use NEARBLK instead.

Match Block - Nearest numbered


MT_REPBLK

public static final MatchType MT_REPBLK
Deprecated. Use REPBLK instead.

Match Block - Representative (Centroid)


MT_BLOCK

public static final MatchType MT_BLOCK
Deprecated. Use BLOCK instead.

Match Block


MT_AA1

public static final MatchType MT_AA1
Deprecated. Use AA1 instead.

Match Admin - Country


MT_AA2

public static final MatchType MT_AA2
Deprecated. Use AA2 instead.

Match Admin - Division


MT_AA3

public static final MatchType MT_AA3
Deprecated. Use AA3 instead.

Match Admin - State


MT_AA4

public static final MatchType MT_AA4
Deprecated. Use AA4 instead.

Match Admin - County


MT_AA5

public static final MatchType MT_AA5
Deprecated. Use AA5 instead.

Match Admin - City


MT_AA6

public static final MatchType MT_AA6
Deprecated. Use AA6 instead.

Match Admin - Division (rarely used)


MT_AA7

public static final MatchType MT_AA7
Deprecated. Use AA7 instead.

Match Admin - smallest division (rarely used)


MT_PC1

public static final MatchType MT_PC1
Deprecated. Use PC1 instead.

Match Postal - Zip


MT_PC2

public static final MatchType MT_PC2
Deprecated. Use PC2 instead.

Match Postal


MT_PC3

public static final MatchType MT_PC3
Deprecated. Use PC3 instead.

Match Postal


MT_PC4

public static final MatchType MT_PC4
Deprecated. Use PC4 instead.

Match Postal


MT_POI

public static final MatchType MT_POI
Deprecated. Use POI instead.

Match POI


LOC

public static final MatchType LOC
Match Location


INTR

public static final MatchType INTR
Match Intersection


NEARBLK

public static final MatchType NEARBLK
Match Block - Nearest numbered


REPBLK

public static final MatchType REPBLK
Match Block - Representative (Centroid)


BLOCK

public static final MatchType BLOCK
Match Block


AA1

public static final MatchType AA1
Match Admin - Country


AA2

public static final MatchType AA2
Match Admin - Division


AA3

public static final MatchType AA3
Match Admin - State


AA4

public static final MatchType AA4
Match Admin - County


AA5

public static final MatchType AA5
Match Admin - City


AA6

public static final MatchType AA6
Match Admin - Division (rarely used)


AA7

public static final MatchType AA7
Match Admin - smallest division (rarely used)


PC1

public static final MatchType PC1
Match Postal - Zip


PC2

public static final MatchType PC2
Match Postal


PC3

public static final MatchType PC3
Match Postal


PC4

public static final MatchType PC4
Match Postal


POI

public static final MatchType POI
Match POI

Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object.


intValue

public int intValue()
Returns an int type representing this object.


fromInt

public static MatchType fromInt(int value)
Creates an object from an integer value.


from_int

public static MatchType from_int(int value)
Deprecated. Use fromInt instead.

Creates an object from an integer value.


equals

public boolean equals(java.lang.Object otherObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is a MatchType object that has same attributes as this object.

Parameters:
otherObject - the object to compare this MatchType against.
Returns:
true if the MatchType objects are equal; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this MatchType.

Returns:
a hash code value for this MatchType.