Устаревший API

https://api.rainviewer.com/public/maps.json

Purpose and description

The past weather radar map frames (2 hours), updates every 10 minutes.

Please, do not guess timestamps. Use it from this API. One frame generates approximately 40 seconds. If you generate the rounded to 10 minutes timestamp automatically, your application will get 404 responses every 10 minutes for the ~ 40 seconds because the new map still generates in that time.

Using of Timestamps

Timestamps from the API above using as a part of the URL. {ts} part. All available URLs and their parameters are described below. For requesting map data, you should use the https://tilecache.rainviewer.com/v2/ base URL.

URLDescription
radar/{ts}/{size}/{z}/{x}/{y}/{color}/{options}.pngRadar data: displays one tile with the composite radar reflectivity data, with specified size, color scheme, and additional options.
radar/{ts}/{size}/{z}/{latitude}/{longitude}/{color}/{options}.pngRadar data: the same as link above, but with center at specified coordinate (EPSG:4326) with desired zoom size. Great for widgets
composite/{ts}/{big_size}/{color}/{options}.pngComposite image with radar reflectivity for a whole world. Slow generation, up to 10 seconds per image loads. Cannot be smoothed.
coverage/0/{size}/{z}/{x}/{y}.pngCoverage tile: where radar data is available (transparent areas) and where is not (black areas)
coverage/0/{size}/{z}/{latitude}/{longitude}.pngCoverage data as above but for specified center coordinate (latitude, longitude)
coverage/0/{big_size}.pngComposite coverage tile for a whole world at once. Slow generation.
  • {ts} – one of the available Unix timestamps from the API.
  • {x}, {y}, {z} – x, y and zoom level of tile you want to download. Read more about tiles
  • {latitude}, {longitude} - Latitude and longitude of specific coordinates accordingly. Decimal format. Must contain a dot in the number. Example: -32.7892, 108.67821.
  • {size} – image size, can be 256 or 512.
  • {big_size} – can be 2000, 4000, 8000, 16000 or 24000 (24000x12000 px or ~2km per pixel). For square images use 4096, 8196 and 16384 accordingly.
  • {color} - color scheme number from the provided list.
  • {options} – list of option separated by _ symbol. For example: ‘1_0’ means smoothed (1) image without snow color scheme (0). Now two options are available: {smooth}_{snow}
    • {smooth} - blur (1) or not (0) radar data. Large composite images are always not smoothed due to performance issues.
    • {snow} - display (1) or not (0) snow in separate colors on the tiles.

Examples

Look to the separate examples page.

Get RainViewer for Free
RainViewer RainViewer