Package com.aerisweather.aeris.tiles
Class BuildTileURL
- java.lang.Object
-
- com.aerisweather.aeris.communication.UrlBuilder
-
- com.aerisweather.aeris.tiles.BuildTileURL
-
public class BuildTileURL extends com.aerisweather.aeris.communication.UrlBuilder
Builds a url to grab a tile from a specific time, code and section of a weather map.
-
-
Constructor Summary
Constructors Constructor Description BuildTileURL(AerisTile code, String time, int x, int y, int zoom)
Constructor for the Build tile.BuildTileURL(AerisTile code, String time, int x, int y, int x2, int y2, int zoom)
Constructor for the Build tile w/ second x,y to do full tile at once for faster loading Context to use
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
Builds the Url for the specific section of the tile.AerisTile
getTileCode()
BuildTileURL
withExtraFilter(String extraFilter)
-
-
-
Constructor Detail
-
BuildTileURL
public BuildTileURL(AerisTile code, String time, int x, int y, int zoom)
Constructor for the Build tile.- Parameters:
code
- Aeris type to get a tile fortime
- the time to get the tile atx
- tile column of the mapy
- tile row for the mapzoom
- zoom level for the tile (1-27)
-
BuildTileURL
public BuildTileURL(AerisTile code, String time, int x, int y, int x2, int y2, int zoom)
Constructor for the Build tile w/ second x,y to do full tile at once for faster loading Context to use- Parameters:
code
- Aeris type to get a tile fortime
- the time to get the tile atx
- tile column of the map for the upper lefty
- tile row for the map for the upper leftx2
- tile column of the map for the bottom righty2
- tile row for the map for the bottom rightzoom
- zoom level for the tile (1-27)
-
-
Method Detail
-
withExtraFilter
public BuildTileURL withExtraFilter(String extraFilter)
-
build
public String build()
Builds the Url for the specific section of the tile.- Specified by:
build
in classcom.aerisweather.aeris.communication.UrlBuilder
- Returns:
- String Url for retrieving the tile
-
getTileCode
public AerisTile getTileCode()
-
-