Sofar API
Search
K
Comment on page

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

get
https://api.sofarocean.com
/marine-weather/v1/models/:model/tile/:zoom/:x/:y.png
Retrieve a map tile representation of weather data

Additional Information

Supported Variables

The Map Tiles endpoint supports raster tile requests for the following variables:
Wave Model
Coral Health Model
  • significantWaveHeight
  • meanPeriod
  • peakPeriod
  • significantWaveHeightWindWaves
  • peakPeriodWindWaves
  • significantWaveHeightFirstSwell
  • peakPeriodFirstSwell
  • significantWaveHeightSecondSwell
  • peakPeriodSecondSwell
  • significantWaveHeightThirdSwell
  • peakPeriodThirdSwell
  • degreeHeathingWeek
  • analysedSeaSurfaceTemperature

Colormap Options

Name
Preview Scale
thermal
velocity
jet
turbo
ylGnBu
glOrRd
density

Examples

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