Example usage for com.google.gwt.maps.client.geocode GeoAddressAccuracy STREET

List of usage examples for com.google.gwt.maps.client.geocode GeoAddressAccuracy STREET

Introduction

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

Prototype

int STREET

To view the source code for com.google.gwt.maps.client.geocode GeoAddressAccuracy STREET.

Click Source Link

Usage

From source file:org.onebusaway.webapp.gwt.where_library.GeocoderAccuracyToBounds.java

License:Apache License

public static int getZoomLevelForAccuracy(int accuracy) {
    switch (accuracy) {
    case 10://from w  w  w  .  j a  v  a 2  s  . com
    case 9:
    case GeoAddressAccuracy.ADDRESS:
    case GeoAddressAccuracy.INTERSECTION:
        return 17;
    case GeoAddressAccuracy.STREET:
        return 15;
    case GeoAddressAccuracy.POSTAL_CODE:
        return 14;
    case GeoAddressAccuracy.TOWN:
        return 12;
    case GeoAddressAccuracy.SUB_REGION:
        return 11;
    case GeoAddressAccuracy.REGION:
        return 7;
    case GeoAddressAccuracy.COUNTRY:
        return 4;
    default:
        return 13;
    }
}