Map Tiles

Overview

For mapping applications, Sofar Ocean provides a map tile server that returns a raster tile with visual representations of select variables. The raster tile PNG images returned by this endpoint can be used to visualize a digital slippy map using third party mapping libraries. For example, libraries such as Leaflet.js or Mapbox.js.

More information on the specific tile format and the slippy map specification can be found on the Open Street Map wiki.

Endpoint

Retrieve a map tile representation of weather data

GET https://api.sofarocean.com/marine-weather/v1/models/:model/tile/:zoom/:x/:y.png

Returns 256 pixel x 256 pixel PNG images of raster marine weather data.

Path Parameters

Query Parameters

// Returns tile as PNG image

Additional Information

Supported Variables

The Map Tiles endpoint supports raster tile requests for the following variables:

  • significantWaveHeight

  • meanPeriod

  • peakPeriod

  • significantWaveHeightWindWaves

  • peakPeriodWindWaves

  • significantWaveHeightFirstSwell

  • peakPeriodFirstSwell

  • significantWaveHeightSecondSwell

  • peakPeriodSecondSwell

  • significantWaveHeightThirdSwell

  • peakPeriodThirdSwell

Colormap Options

Examples

Valid examples and their corresponding responses are available on the Map Tiles examples page.

Last updated