none
Wron calculation distancematrix RRS feed

  • Question

  • Hello,

    I do with json a call to the distancematrix.

    But I get the wrong KM's back. Can someone help me?

    Distance between 51.11251,3.98416 and 51.08221,4.00768 is not 21 KM. This is 7KM

    Send:

    {
      "origins": [{
        "latitude": "51.11251",
        "longitude": "3.98416"
      }],
      "destinations": [
        {
    
          "latitude": "51.16002",
          "longitude": "4.81098"
        },
        {
          "latitude": "51.08221",
          "longitude": "4.00768"
        }
      ],
      "travelMode": "driving"
    }

    Response:

    <?xml version="1.0"?>
    
    -<BingLocation>
    
    <authenticationResultCode>ValidCredentials</authenticationResultCode>
    
    <brandLogoUri>http://dev.virtualearth.net/Branding/logo_powered_by.png</brandLogoUri>
    
    <copyright>Copyright © 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.</copyright>
    
    
    -<resourceSets>
    
    <estimatedTotal>1</estimatedTotal>
    
    
    -<resources>
    
    <__type>DistanceMatrix:http://schemas.microsoft.com/search/local/ws/rest/v1</__type>
    
    
    -<destinations>
    
    <latitude>51.16002</latitude>
    
    <longitude>4.81098</longitude>
    
    </destinations>
    
    
    -<destinations>
    
    <latitude>51.08221</latitude>
    
    <longitude>4.00768</longitude>
    
    </destinations>
    
    <errorMessage>Request accepted.</errorMessage>
    
    
    -<origins>
    
    <latitude>51.11251</latitude>
    
    <longitude>3.98416</longitude>
    
    </origins>
    
    
    -<results>
    
    <destinationIndex>0</destinationIndex>
    
    <originIndex>0</originIndex>
    
    <totalWalkDuration>0</totalWalkDuration>
    
    <travelDistance>66.375</travelDistance>
    
    <travelDuration>44.408</travelDuration>
    
    </results>
    
    
    -<results>
    
    <destinationIndex>1</destinationIndex>
    
    <originIndex>0</originIndex>
    
    <totalWalkDuration>0</totalWalkDuration>
    
    <travelDistance>21.225</travelDistance>
    
    <travelDuration>26.243</travelDuration>
    
    </results>
    
    </resources>
    
    </resourceSets>
    
    <statusCode>200</statusCode>
    
    <statusDescription>OK</statusDescription>
    
    <traceId>79d0dc8c92ea4be69c0f6561eb61efb9|DU00000D5D|7.7.0.0</traceId>
    
    </BingLocation>


    Friday, June 21, 2019 10:26 AM

All replies

  • Hi Wimpel2,

    I have sent a link to this post to the Distance Matrix Team.  They work on an AGILE schedule so I don't know when they will review it but hopefully they will read your post within the next week. 

    Sincerely,

    IoTGirl

    Sunday, June 23, 2019 4:33 AM
    Owner
  • Hi Wimpel2,

    I have sent a link to this post to the Distance Matrix Team.  They work on an AGILE schedule so I don't know when they will review it but hopefully they will read your post within the next week. 

    Sincerely,

    IoTGirl

    Thank you!
    Tuesday, June 25, 2019 8:54 AM
  • You are very welcome!  I can confirm they have received my notice of your issue and have passed it to the Engineering team.  Again, I can't offer any time expectation but they do have your sample for review.

    Tuesday, June 25, 2019 10:49 PM
    Owner
  • You are very welcome!  I can confirm they have received my notice of your issue and have passed it to the Engineering team.  Again, I can't offer any time expectation but they do have your sample for review.

    Hello,

    Is there still no solution for this problem?

    Monday, July 8, 2019 8:31 AM
  • Hi Wimpel2,

    The team has not resolved the issue to me so I have no update for you at this time.  Note that they work on an AGILE schedule so your issue will likely be reviewed at their next sprint.

    UPDATE:  The Team has found the source of the issue.  They will be looking into a fix on their next sprint.

    Sincerely,

    IoTGirl


    Monday, July 8, 2019 5:53 PM
    Owner