code: public static TileCode getTileCodeForLocation(TileConfiguration tileConfiguration, Coordinate location,
  			double resolution) {
  		int tileLevel = tileConfiguration.getResolutionIndex(resolution);
  		double actualResolution = tileConfiguration.getResolution(tileLevel);
  		double worldTileWidth = tileConfiguration.getTileWidth() * actualResolution;
  		double worldTileHeight = tileConfiguration.getTileHeight() * actualResolution;
  
  		Coordinate tileOrigin = tileConfiguration.getTileOrigin();
  		int x = (int) Math.floor((location.getX() - tileOrigin.getX()) / worldTileWidth);
  		int y = (int) Math.floor((location.getY() - tileOrigin.getY()) / worldTileHeight);
  
  		return new TileCode(tileLevel, x, y);
  	}
docs: Given a certain location at a certain scale, what tile lies there?
  
  @param tileConfiguration The basic tile configuration.
  @param location          The location to retrieve a tile for.
  @param resolution        The resolution at which to retrieve a tile.
  @return Returns the tile code for the requested location.