none
Direction manager truck route issue RRS feed

  • Question

  • Hi,

    We are facing issue for some location while plotting the route using truck. It is working correctly for car.

    When we tried to get route for below two location using truck then it is showing different route and car shows different route.

    Note: while adding waypoints we used location attributes not address.

    directionsManager.addWaypoint(new Microsoft.Maps.Directions.Waypoint({ address: formattedaddress, location: new Microsoft.Maps.Location(latitude, longitude) }));

    A) 8755 S River Rd Blue Rock OH 43720 us

    latitude: 39.80339

    longitude: -81.89208

    B) 9906 Oak Grove Road Redmond WA 80803 USA

    latitude: 39.49591

    longitude: -98.9899

    Route using car:

    Route using Truck:

    IS anyone face such type of issue and have solution for it.

    Thanks!


    Balasaheb

    Saturday, April 11, 2020 7:14 PM

All replies

  • Hi Balasaheb,

    Truck routes and car routes can be different for a number of reasons.  Please take a look at the demo here: https://www.microsoft.com/en-us/maps/truck-routing/truck-routing-api-demo/

    Sincerely,

    IoTGirl

    Sunday, April 12, 2020 6:37 PM
    Owner
  • Hi,

    Thanks for your reply.

    We have checked but for particular address that we mentioned above there is some issue because it shows incorrect route because it did not consider location (latitude and longitude) while plotting truck route.

    Can you please check and let us know.

    Thanks!   


    Balasaheb

    Wednesday, April 15, 2020 7:27 AM
  • Hi Balasaheb,

    You are not giving the full story here.  For example when I geocode "8755 S River Rd Blue Rock OH 43720" I get a different Geocode.  Can you please provide the whole set of steps involved including the geocode call and the routing call that fails?

    Sincerely,

    IoTGirl


    Wednesday, April 15, 2020 3:48 PM
    Owner