Example usage for com.google.gwt.maps.client.geocode StatusCodes TOO_MANY_QUERIES

List of usage examples for com.google.gwt.maps.client.geocode StatusCodes TOO_MANY_QUERIES

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.geocode StatusCodes TOO_MANY_QUERIES.

Prototype

int TOO_MANY_QUERIES

To view the source code for com.google.gwt.maps.client.geocode StatusCodes TOO_MANY_QUERIES.

Click Source Link

Document

The given key has gone over the requests limit in the 24 hour period.

Usage

From source file:org.maps.client.Maps.java

License:Apache License

private String getMessage(int statusCode) {
    String answer = "Unknown reason";
    if (statusCode == StatusCodes.API_ERROR) {
        answer = "API Error";
    } else if (statusCode == StatusCodes.BAD_KEY) {
        answer = "Bad Key";
    } else if (statusCode == StatusCodes.BAD_REQUEST) {
        answer = "Bad Request";
    } else if (statusCode == StatusCodes.MISSING_ADDRESS) {
        answer = "Missing Address";
    } else if (statusCode == StatusCodes.SERVER_ERROR) {
        answer = "Google Server Error";
    } else if (statusCode == StatusCodes.MISSING_QUERY) {
        answer = "Missing Queury";
    } else if (statusCode == StatusCodes.SUCCESS) {
        answer = "Success";
    } else if (statusCode == StatusCodes.TOO_MANY_QUERIES) {
        answer = "Too Many Queries";
    } else if (statusCode == StatusCodes.UNAVAILABLE_ADDRESS) {
        answer = "Unavailable Address";
    } else if (statusCode == StatusCodes.UNKNOWN_ADDRESS) {
        answer = "Unknown Address";
    } else if (statusCode == StatusCodes.UNKNOWN_DIRECTIONS) {
        answer = "Unknown Directions";
    }/*w w w .j a  va 2s.  c  o m*/
    return answer;
}