com.google.gwt.maps.client.geocode
Class StatusCodes

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.geocode.StatusCodes

public final class StatusCodes
extends com.google.gwt.core.client.JavaScriptObject

Result status codes for the Google Geocoding service.


Field Summary
static int BAD_KEY
          The given key is either invalid or does not match the domain for which it was given.
static int BAD_REQUEST
          A directions request could not be successfully parsed.
static int MISSING_ADDRESS
          Synonym for MISSING_QUERY.
static int MISSING_QUERY
          The HTTP q parameter was either missing or had no value.
static int SERVER_ERROR
          A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.
static int SUCCESS
          No errors occurred; the address was successfully parsed and its geocode has been returned.
static int TOO_MANY_QUERIES
          The given key has gone over the requests limit in the 24 hour period.
static int UNAVAILABLE_ADDRESS
          The geocode for the given address or the route for the given directions query cannot be returned due to legal or contractual reasons.
static int UNKNOWN_ADDRESS
          No corresponding geographic location could be found for the specified address.
static int UNKNOWN_DIRECTIONS
          The Directions object could not compute directions between the points mentioned in the query.
 
Constructor Summary
protected StatusCodes()
           
 
Method Summary
static java.lang.String getName(int statusCode)
           
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BAD_KEY

public static final int BAD_KEY
The given key is either invalid or does not match the domain for which it was given.


BAD_REQUEST

public static final int BAD_REQUEST
A directions request could not be successfully parsed.


MISSING_ADDRESS

public static final int MISSING_ADDRESS
Synonym for MISSING_QUERY.


MISSING_QUERY

public static final int MISSING_QUERY
The HTTP q parameter was either missing or had no value. For geocoding requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input


SERVER_ERROR

public static final int SERVER_ERROR
A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.


SUCCESS

public static final int SUCCESS
No errors occurred; the address was successfully parsed and its geocode has been returned.


TOO_MANY_QUERIES

public static final int TOO_MANY_QUERIES
The given key has gone over the requests limit in the 24 hour period.


UNAVAILABLE_ADDRESS

public static final int UNAVAILABLE_ADDRESS
The geocode for the given address or the route for the given directions query cannot be returned due to legal or contractual reasons.


UNKNOWN_ADDRESS

public static final int UNKNOWN_ADDRESS
No corresponding geographic location could be found for the specified address. This may be due to the fact that the address is relatively new, or it may be incorrect.


UNKNOWN_DIRECTIONS

public static final int UNKNOWN_DIRECTIONS
The Directions object could not compute directions between the points mentioned in the query. This is usually because there is no route available between the two points, or because we do not have data for routing in that region.

Constructor Detail

StatusCodes

protected StatusCodes()
Method Detail

getName

public static java.lang.String getName(int statusCode)