How to get Weather Warnings from Bing API Truck Route?

Nathan Echon 0 Reputation points
2023-03-09T14:48:03.7066667+00:00

When requesting Truck Routes from this endpoint https://dev.virtualearth.net/REST/v1/Routes/Truck, how do I enable Weather Warnings to be included in the response? Is there a certain parameter that needs to be included in the request? Is it dependent on some properties of the request object?

Also, what kind of weather warnings are returned when they are applicable? Is there a full list somewhere I can view?

I've tried calculating truck routes through area's that are experiencing extreme weather with active alerts, but I have yet to see any weather warnings returned in the Itinerary Items objects returned in the Truck Route response object.

Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
257 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 3,211 Reputation points Microsoft Employee
    2023-04-06T16:58:34.1066667+00:00

    Bing Maps does not have a Weather API but our other product, Azure Maps, does have a weather API that would meet this need. See https://samples.azuremaps.com/?search=weather&sample=get-weather-along-a-route

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.