404 Error from Routes REST API - One or more waypoints can't be routed because they are too far from any roads RRS feed

  • Question

  • Recently I have started to see this error occur when trying to get a Route between two waypoints:

    <?xml version="1.0" encoding="utf-8"?><Response xmlns:xsd="" xmlns:xsi="" xmlns=""><Copyright>Copyright © 2017 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.</Copyright><BrandLogoUri></BrandLogoUri><StatusCode>404</StatusCode><StatusDescription>Not Found</StatusDescription><AuthenticationResultCode>ValidCredentials</AuthenticationResultCode><ErrorDetails><string>One or more waypoints can't be routed because they are too far from any roads.</string></ErrorDetails><TraceId>e8d07755ce0542fdab47633141cf916d|CH10043639||CH10180138, CH10020141, CH10170952, CH10180458, CH10080134, CH10100337, CH10090254, CH10080129, CH10061233, CH10061622, CH10090261, CH10100325, CH10100327, CH10180457, CH10170544</TraceId><ResourceSets /></Response>

    This is the response text back from "" when queried a couple standard options. This doesn't occur on every request only a few.

    I've made sure that any waypoint I'm using is close to a road but I can't seem to understand why this is happening more and more. Any thoughts would be appreciated

    Friday, April 28, 2017 1:44 AM


All replies

  • That's a valid error. Can you provide the waypoints you are passing in?

    [Blog] [twitter] [LinkedIn]

    Friday, April 28, 2017 3:43 AM
  • So it ended up that one point was 45 miles away from a road which I missed in my initial assessment. I had to plot all of the points on a map to see which ones could be off. The error was legitimate after that extra review an I now have my points corrected to create a route properly.

    Do you know that the tolerance is for how far a waypoint can be away from an actual road before that error occurs?

    Friday, April 28, 2017 3:36 PM
  • Generally routes will only snap to roads if they are within 150 meters meters or so. This is a common standard used in most mapping platforms. 

    [Blog] [twitter] [LinkedIn]

    Saturday, April 29, 2017 4:05 AM