Route API question

Balasaheb Molawade 136 Reputation points
2024-01-16T13:22:42.7133333+00:00

Hi Team,  We have been utilizing the Route API (https://dev.virtualearth.net/REST/V1/Routes/driving) to obtain travel information, such as directions, travel duration, and distance covered. However, we have encountered 404 errors for certain addresses, as shown in the screenshot below.  Screenshot:  We are facing issues with the following addresses:  - Address 1: 5427 Castlecreek Lane Houston TX 77053 US

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
736 questions
{count} votes

2 answers

Sort by: Most helpful
  1. rbrundritt 18,681 Reputation points Microsoft Employee
    2024-01-16T17:24:46.1933333+00:00

    Very odd. The response has an errorDetails value that says it doesn't like the first address, but it appears to be valid and searchable via the geocoder, so it should work. I recommend reaching out to the Bing maps support team to have this investigated: https://www.microsoft.com/en-us/maps/bing-maps/support (click the learn more button under enterprise support).

    A couple of general recommendations to reduce other possible issues in the future (didn't seem to make much difference in this case though):

    1. Try and properly format address strings with comma's. When there is only spaces between words it wouldn't take much for something to be categorized as the wrong type of address part (house number taken as zip code...).
    2. When using REST services, be sure to encode addresses. Some characters can cause issues in URL formats. This is noted in the best practices document here: https://learn.microsoft.com/en-us/bingmaps/getting-started/bing-maps-api-best-practices#geocoding
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.