An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
You can use the routing service and request the traffic section type be included. This will provide the details of the traffic along the route path. This would work for two points on the same street, or multiple points along a complex route (so one solution for all). For example: https://atlas.microsoft.com/route/directions/json?api-version=1.0&query=48.855361,2.346233:52.50274,13.43872&subscription-key=
Note that this will tell which sections of the route have traffic situations along them, such as traffic jams. If there is not traffic event, then there won't be any traffic details returned, other than the travel time with respect to traffic.