Hi Anthony,
You need to do like the web site does. Try the steps at Bing.com/maps and you will see what I mean. Basically not all points are "Routeable" and transit legs can go beyond the leg limits of the routing REST API.
Repro Steps:
- Go to Bing.com/maps and enter your starting point in the UI -> You will see this immediately convert to the closest routable address
- Choose "Directions" and then enter the second coordinate -> You will see this do the same transformation
- Find the route -> This will work because the non-routable points have been converted to the closest routable points
The number one question I get is why doesn't the API do this for me and the best answer is, we don't want to mislead and say a point is accessible for routing of a certain type if it isn't so to accomplish the same thing with the REST API:
- Call https://learn.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-point and use the Geopoint with "<UsageType>Route</UsageType> " for the start and end points
- Call the REST Route API with the "Route" co-ordinates
NOTE: Bing Maps TOU (https://www.microsoft.com/en-us/maps/product) does allow for the caching of geocodes while you are licensed so if you do have a license, you can store the routable geocodes for addresses you use frequently.
Sincerely,
IoTGirl