There are multiple methods for requesting tiles from Global Radar. ZXY and ZYX formats provide a means of identifying tiles directly by coordinates, while quadkey identifies tiles by a unique code. Tile requests that yield no graphical data will redirect to a blank tile. See Blank Tiles below for details.
ZXY and ZYX format
The ZXY URL format is a standard Google format. It requires the zoom level (z), the x coordinate (x), the y coordinate (y), and a time and date for the requested weather data. These four variables determine which tile the call returns and what information it contains.
Code
https://{baseUrl}/maps/{version}/radar/globalSIR/zxy/{yyyy-mm-dd}T{hh:mm:ss}Z/{zoom}/{x}/{y}.png?apikey={your key}&colortable={on or off}&display_mode={display mode}
The ZYX URL format is nearly identical but will return the most recent tile for the provided location. Date and time are not necessary for this call. The call is redirected (via 302 redirect) to an altered response URL that includes the appropriate date and time.
Code
https://{baseUrl}/maps/{version}/radar/globalSIR/zxy/tile/{zoom}/{x}/{y}.png?apikey={your key}&colortable={on or off}&display_mode={display mode}
Example
A simple search for a specific tile with a zoom level of 4, at coordinates X=9 and Y=4 will look like this:
The call will redirect to the most recently available time and date for that tile, and the response will be the specified tile showing current weather data:
This method gets tiles using Microsoft's quadtree key (quadkey) format. Quadkey is an alternative method for identifying individual tiles in a map grid. Instead of separating values, it combines all identifying factors into a solid numerical string. The correct URL formatting is shown below.
Code
https://{baseUrl}/maps/{version}/radar/globalSIR/quadkey/{quadkey value}.png?apikey={your key}&colortable={on or off}&display_mode={display mode}
If a tile request yields no graphical data, the API returns a generic blank tile. The URL redirects to a static address that contains the blank tile. The correct URL formatting is shown below.
Returns a list of available products within Global Radar. This function can be used to move the map to a specific product. The correct URL formatting is shown below.
Returns a list of products within a specified map bounding box. The top left corner of the box is defined by X1, Y1 and the bottom right corner of the box is defined by X2, Y2. The correct URL formatting is shown below.
Code
https://{baseUrl}/maps/{version}/radar/globalSIR/preferred_tile_products?apikey={your key}&x1={top left x coordinate}&y1={top left y coordinate}&x2={bottom right x coordinate}&y2={bottom right y coordinate}&z={zoom level}&attribute={boolean}
Returns a static weather radar image that includes a base map image in a single file.
Static radar map by city
Search by city to return a localized radar map image.
Code
https://{baseUrl}/maps/{version}/radar/staticImage/{imagedimensions}/cities/{locationkey}?apikey={your key}&language={languagecode}&theme={light or dark}&legend={boolean}&imgtype={png or jpg}
Search by political division within a country such as state or province.
Code
https://{baseUrl}/maps/{version}/radar/staticImage/{imagedimensions}/adminareas/{countrycode}/{region}?apikey={your key}&language={languagecode}&theme={light or dark}&legend={boolean}&imgtype={png or jpg}
https://{baseUrl}/maps/{version}/radar/staticImage/{imagedimensions}/countries/{countrycode}?apikey={your key}&language={languagecode}&theme={light or dark}&legend={boolean}&imgtype={png or jpg}