Weather on Routes

This endpoint takes the common output response of popular navigation service APIs (such as Google Maps and Mapbox) as legs (each represented by a location and the duration within that route segment), the startTime for the trip and the timestep in which the developer is interested to sample the conditions.
The result will be a collection of intervals specifying min/max/avg values throughout the route, with consideration to the context (time spent in each leg).

Legs

A route is mainly defined by a set of legs, each with the geometry that defines it (Point, Polyline or Polygon) and the expected travel duration within it (in minutes).

[{
        "duration": 54,
        "location": {
            "type": "LineString",
            "coordinates": [
                [-6.80897, 62.00008],
                [-6.8047, 62.00069],
                [-6.7996, 62.00181],
                [-6.80149, 62.00293],
                [-6.80207, 62.00349],
                [-6.80226, 62.00375],
                [-6.80237, 62.00414]
            ]
        }
    },
    {
        "location": {
            "type": "LineString",
            "coordinates": [
                [100.0, 0.0],
                [101.0, 0.0],
                [101.0, 1.0],
                [100.0, 1.0],
                [100.0, 0.0]
            ]
        },
        "duration": 8
    }
]