none
DistanceMatrix Sub Optimal Results RRS feed

  • Question

  • I am worried about sub optimal results via the DistanceMatrix REST service 

    origin: 42.396249,-83.241497

    destinations: "42.550747,-83.020226","42.218641,-83.470717","42.593134,-82.976175","41.683473,-83.536586"

    returns: {"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright \u00a9 2019 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.","resourceSets":[{"estimatedTotal":1,"resources":[{"__type":"DistanceMatrix:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","destinations":[{"latitude":42.550747,"longitude":-83.020226},{"latitude":42.218641,"longitude":-83.470717},{"latitude":42.593134,"longitude":-82.976175},{"latitude":41.683473,"longitude":-83.536586}],"errorMessage":"Request accepted.","origins":[{"latitude":42.396249,"longitude":-83.241497}],"results":[{"destinationIndex":0,"originIndex":0,"totalWalkDuration":0,"travelDistance":22.24,"travelDuration":36.797},{"destinationIndex":1,"originIndex":0,"totalWalkDuration":0,"travelDistance":25.758,"travelDuration":30.233},{"destinationIndex":2,"originIndex":0,"totalWalkDuration":0,"travelDistance":28.263,"travelDuration":46.472},{"destinationIndex":3,"originIndex":0,"totalWalkDuration":0,"travelDistance":60.003,"travelDuration":66.45}]}]}],"statusCode":200,"statusDescription":"OK","traceId":"1e874734102345b8b51575cab786e489|BN1C5D2914|7.7.0.0"}

    This takes the user north then south then back north then back south



    • Edited by ptaylorfl Wednesday, February 13, 2019 2:38 PM
    Wednesday, February 6, 2019 6:48 PM

Answers