package util;

/**
 * Provides the client with utility method(s) to generate
 * google maps tile URLs.
 * 
 * @author Angel Roman - Angel.Roman@mdesystems.com
 */
public class GoogleTileURL {
	
	/**
	 * Returns a string represantion of a google maps tile url for a particular GoogleTile
	 * 
	 * @param tile
	 * @return
	 */
	public static String url(GoogleTile tile) {
		return "http://mt0.google.com/mt?n=404&&x=" + tile.getTileCoord().getX() + "&y=" +
				tile.getTileCoord().getY() + "&zoom=" + tile.getZoom();
	}
}