Logo
developer platform
Docs
API
Pricing
Showcase
API Overview
Geocoding
Geocoding
Geocoding NearbyGeocoding Search
Weather
Weather Core
ForecastRadarClimateWarnings
Weather Timeseries
Timeseries ModelsTimeseries Point ForecastTimeseries Route Forecast
Weather Ensemble
Ensemble ModelsEnsemble Point Forecast
Marine
Marine Timeseries
Timeseries ModelsTimeseries Point ForecastTimeseries Route Forecast
Marine Ensemble
Ensemble ModelsEnsemble Point Forecast
Marine Shipping
Shipping Point ForecastShipping Route Forecast
Marine Ports
Port ListPort Info
Mobility (The Netherlands)
Mobility Traffic
Traffic OverviewTraffic Geo
Mobility Transit
Transit Planner SearchTransit Planner MixerTransit Stops NearbyTransit Stop Departures

Timeseries Route Forecast

GET
https://api.infoplaza.com/v1/marine/timeseries/route

Description

Get a weather forecast along a route, where for each waypoint the correct forecast offset is chosen based on the estimated arrival time at that point. You provide a series of coordinates (the route) and a speed; the API calculates when you'll arrive at each point and returns the weather values for the requested elements at the matching forecast offsets. This gives you a time-dependent forecast per location instead of a static forecast for a single moment, which is useful for route planning, navigation, and logistics where weather conditions change along the way.

Available for all weather models except ensemble models.

Credits = waypoints count x elements count

Parameters

ParameterTypeRequiredDefaultDescription
latsarrayRequired-The latitudes of the route
lonsarrayRequired-The longitudes of the route
modelstringRequired-Weather model key
elementsarrayRequired-Weather elements
timesarrayOptional-Waypoint times (epoch), if set then "start" and "speed" parameters are ignored.
startnumberOptional-Start time (epoch), default: Now
speednumberOptional16Speed (kts)
levelsarrayOptional-Weather element levels
runtimestringOptionallatestModels run
unitsarrayOptional-Weather element units

Response

PropertyTypeDescription
model
stringName of the weather model used to generate the forecast.
speed
objectSpeed of the travel along the route represented in different units.
└─ms
numberSpeed in meters per second.
└─kmh
numberSpeed in kilometers per hour.
kts

Example Request

curl "https://api.infoplaza.com/v1/marine/timeseries/route
     ?lats=52.02,52.37 
     &lons=5.16,4.89 
     &model=optimal-wave 
     &elements=waveheight_significant 
     &api_key=$INFOPLAZA_API_KEY"

Example Response

{
  "model": "optimal-wave",
  "speed": {
    "ms": 8.23,
    "kmh": 29.632,
    "kts": 16
  },
  "runtime": 1788393600,
  "elements": [
    {
      "data": [
        {
          "lat": 52.02,
          "lon": 5.16,
          "time": 1788425362,
          "value": null,
          "offset": 9,
          "distance": 0,
          "offsetTime": 1788426000
        },
        {
          "lat": 52.37,
          "lon": 4.89,
          "time": 1788430592,
          "value": 1.81,
          "offset": 10,
          "distance": 43049,
          "offsetTime": 1788429600
        }
      ],
      "unit": "m",
      "level": "",
      "element": "waveheight_significant"
    }
  ]
}
└─
integer
Speed in knots.
runtime
integerTimestamp (Unix time) when the forecast model run was initiated.
elements
arrayList of weather elements included in the forecast for each location along the route.
└─data
arrayTime-dependent weather data specific to waypoints along the route.
└─lat
numberLatitude coordinate of the waypoint.
└─lon
numberLongitude coordinate of the waypoint.
└─time
integerTimestamp (Unix time) corresponding to the forecast time for this waypoint.
└─value
number | null-
└─offset
integerForecast interval offset index selected based on estimated arrival time.
└─distance
integerDistance in meters along the route from the starting point to this waypoint.
└─offsetTime
integerExact timestamp indicating the time of the forecast interval used (Unix time).
└─unit
stringUnits of measurement for the element's values.
└─level
stringVertical level or layer for the element, or empty if not applicable.
└─element
stringIdentifier of the weather element, e.g. 'waveheight_significant'.