Logo
developer platform
Docs
API
Pricing
Showcase
API Overview
API Reference
Geocoding
Geocoding NearbyGeocoding SearchPort ListPort Info
Weather Core
ForecastRadarClimateWarnings
Weather Timeseries
Timeseries ModelsTimeseries Point ForecastTimeseries Route Forecast
Weather Ensemble
Ensemble ModelsEnsemble Point ForecastEnsemble Route Forecast
Marine Timeseries
Timeseries ModelsTimeseries Point Forecast
Marine Ensemble
Ensemble ModelsEnsemble Point Forecast
Vessels
Vessel SearchVessel InfoVessel LocationVessel Location History
Observations
Observations InfoObservations Latest
Lightning
Lightning LiveLightning History
Earthquakes
Earthquakes
Tropical Storms
Tropical Storms
Mobility Traffic (NL Only)
Traffic OverviewTraffic Geo
Mobility Transit (NL Only)
Transit PlannerTransit Planner MixerTransit Stops NearbyTransit Stop Departures
Developer Infoplaza (obsolete)
Weather ClimateWeather Forecast
Archive
Test ErrorWeather Climate (old)

Ensemble Route Forecast

GET
https://api.infoplaza.dev/v1/weather/ensemble/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 ensemble weather 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
levelsarrayRequired-Weather element levels
runtimestringOptionallatestModels run
unitsarrayOptional-Weather element units
startnumberOptional-Start time (epoch), default: Now
speednumberOptional25Speed in km/h

Response

PropertyTypeDescription
model
stringThe model name used for the route timeseries data.
speed
objectSpeed of the route in different units.
└─ms
numberSpeed in meters per second.
└─kmh
numberSpeed in kilometers per hour.
runtime

Example Request

curl "https://api.infoplaza.dev/v1/weather/ensemble/route? \
     lats=52.02,52.37 \
     &lons=5.16,4.89 \
     &model=optimal \
     &elements=temperature,windspeed \
     &levels=2m,10m \
     &api_key=$INFOPLAZA_API_KEY"

Example Response

{
  "model": "optimal",
  "speed": {
    "ms": 6.94,
    "kmh": 25
  },
  "runtime": 1778583600,
  "elements": [
    {
      "data": [
        {
          "lat": 52.02,
          "lon": 5.16,
          "time": 1778586679,
          "value": 10.39,
          "offset": 1,
          "distance": 0,
          "offsetTime": 1778587200,
          "distanceTime": 0
        },
        {
          "lat": 52.37,
          "lon": 4.89,
          "time": 1778592882,
          "value": 11.9,
          "offset": 3,
          "distance": 43049,
          "offsetTime": 1778594400,
          "distanceTime": 6203
        }
      ],
      "unit": "°C",
      "level": "2m",
      "element": "temperature"
    },
    {
      "data": [
        {
          "lat": 52.02,
          "lon": 5.16,
          "time": 1778586679,
          "value": 5.96,
          "offset": 1,
          "distance": 0,
          "offsetTime": 1778587200,
          "distanceTime": 0
        },
        {
          "lat": 52.37,
          "lon": 4.89,
          "time": 1778592882,
          "value": 6.35,
          "offset": 3,
          "distance": 43049,
          "offsetTime": 1778594400,
          "distanceTime": 6203
        }
      ],
      "unit": "m/s",
      "level": "10m",
      "element": "windspeed"
    }
  ]
}
integer
The runtime timestamp representing the start time for the route timeseries as a Unix timestamp in seconds.
elements
arrayAn array of elements describing the different parameters available along the route.
└─data
arrayArray of data points along the route for this element.
└─lat
numberLatitude coordinate (in decimal degrees) of the data point.
└─lon
numberLongitude coordinate (in decimal degrees) of the data point.
└─time
integerUnix timestamp (seconds) representing when this data was recorded or valid.
└─value
numberThe measured or modeled value of the element at this data point.
└─offset
integerOffset in hours relative to some reference time, often runtime.
└─distance
numberDistance in meters along the route from the start.
└─offsetTime
integerUnix timestamp (seconds) representing the time after applying the offset.
└─distanceTime
integerTime in seconds needed to travel the distance from the start.
└─unit
stringThe unit of measurement for the element values.
└─level
stringThe vertical level or height at which the element is measured.
└─element
stringThe name of the element, e.g., temperature, windspeed.