How to get the distance of a route using Bing maps API?
12:44 17 Nov 2020

The "function" that I need is in this link, but there is no example, just a "RouteSummary Object" and the bellow there is the "distance", which is what I need.

I got the code bellow in this link


    
        
    
    
        

I tried like that ways:

routeSummary.distance();

and too:

directionsManager.routeSummary.distance();
javascript documentation bing-maps