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/weather/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
levelsarrayRequired-Weather element levels
timesarrayOptional-Waypoint times (epoch), if set then "start" and "speed" parameters are ignored.
startnumberOptional-Start time (epoch), default: Now
speednumberOptional25Speed in km/h
runtimestringOptionallatestModels run
unitsarrayOptional-Weather element units

Response

PropertyTypeDescription
model
stringThe weather model used for the forecast, e.g. 'optimal'.
speed
objectThe travel speed along the route in different units.
└─ms
numberSpeed in meters per second.
└─kmh
numberSpeed in kilometers per hour.
runtime

Example Request

curl "https://api.infoplaza.com/v1/weather/timeseries/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": 1788346800,
  "elements": [
    {
      "data": [
        {
          "lat": 52.02,
          "lon": 5.16,
          "time": 1788352219,
          "value": 19.8,
          "offset": 2,
          "distance": 0,
          "offsetTime": 1788354000
        },
        {
          "lat": 52.37,
          "lon": 4.89,
          "time": 1788358422,
          "value": 20,
          "offset": 3,
          "distance": 43049,
          "offsetTime": 1788357600
        }
      ],
      "unit": "°C",
      "level": "2m",
      "element": "temperature"
    },
    {
      "data": [
        {
          "lat": 52.02,
          "lon": 5.16,
          "time": 1788352219,
          "value": 3.34,
          "offset": 2,
          "distance": 0,
          "offsetTime": 1788354000
        },
        {
          "lat": 52.37,
          "lon": 4.89,
          "time": 1788358422,
          "value": 5.36,
          "offset": 3,
          "distance": 43049,
          "offsetTime": 1788357600
        }
      ],
      "unit": "m/s",
      "level": "10m",
      "element": "windspeed"
    }
  ]
}
integer
Unix timestamp (seconds since epoch) indicating the model run time of the forecast.
elements
arrayAn array of weather elements for which forecast data is returned.
└─data
arrayForecast data points for the element at each waypoint along the route.
└─lat
numberLatitude coordinate of the waypoint in decimal degrees.
└─lon
numberLongitude coordinate of the waypoint in decimal degrees.
└─time
integerEstimated arrival time at the waypoint as Unix timestamp (seconds since epoch).
└─value
numberThe forecasted value of the weather element at the waypoint and offset.
└─offset
integerForecast time offset (typically in hours) used for matching the weather data to the arrival time.
└─distance
numberDistance in meters from the start of the route to this waypoint.
└─offsetTime
integerThe exact forecast timestamp corresponding to the selected offset, in Unix timestamp (seconds since epoch).
└─unit
stringUnit of measurement for the weather element values, e.g. '°C', 'm/s'.
└─level
stringThe atmospheric level or height at which the element is measured, e.g. '2m', '10m'.
└─element
stringThe weather element type, e.g. 'temperature', 'windspeed'.