Hi @LMMMMM
You can use the Find a Location by Query to get the longitude and latitude of two different locations:
https://learn.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-query
http://dev.virtualearth.net/REST/v1/Locations/{locationQuery}?includeNeighborhood={includeNeighborhood}&maxResults={maxResults}&include={includeValue}&key={BingMapsKey}
Then you can do simple math to get the distance between the two geocodes.
If you want to know the distance via a driving, transit or other route option, use the Rest Route API:
https://learn.microsoft.com/en-us/bingmaps/rest-services/routes/calculate-a-route
http://dev.virtualearth.net/REST/V1/Routes/Driving?o=xml&wp.0=Seattle,WA&wp.1=Portland,OR&key={BingMapsKey}
--------------------------------------------------------
If this is helpful please accept answer.