class OsmUtils {

	public static OverlayItem.HotspotPlace anchorToHotspot(float u, float v) {
		if (v > ANCHOR_HIGH_THRESHOLD) {
			if (u < ANCHOR_LOW_THRESHOLD) {
				return OverlayItem.HotspotPlace.LOWER_LEFT_CORNER;
			} else if (u > ANCHOR_HIGH_THRESHOLD) {
				return OverlayItem.HotspotPlace.LOWER_RIGHT_CORNER;
			} else {
				return OverlayItem.HotspotPlace.BOTTOM_CENTER;
			}
		} else if (v < ANCHOR_LOW_THRESHOLD) {
			if (u < ANCHOR_LOW_THRESHOLD) {
				return OverlayItem.HotspotPlace.UPPER_LEFT_CORNER;
			} else if (u > ANCHOR_HIGH_THRESHOLD) {
				return OverlayItem.HotspotPlace.UPPER_RIGHT_CORNER;
			} else {
				return OverlayItem.HotspotPlace.TOP_CENTER;
			}
		} else {
			if (u < ANCHOR_LOW_THRESHOLD) {
				return OverlayItem.HotspotPlace.LEFT_CENTER;
			} else if (u > ANCHOR_HIGH_THRESHOLD) {
				return OverlayItem.HotspotPlace.RIGHT_CENTER;
			} else {
				return OverlayItem.HotspotPlace.CENTER;
			}
		}
	}

}