geolocation - C# Maps - RouteQuery giving a false route -


so have bing map control, geocordwatcher getting gps lat , lon, timer position intervals , routequery maker turning gps cords path map.

the points correct, +- couple of meters. problem if near intersection or side street when route query runs takes me off on half mile expedition never went on.

i have tried using both default accuracy , high accuracy same results. seems worse high accuracy.

has else had issue?

            routequery rq = new routequery();             list<geocoordinate> cords = new list<geocoordinate>();             foreach (classes.positionobj posobj in waypoints)             {                 cords.add(new geocoordinate(convert.todouble(posobj.lattitude), convert.todouble(posobj.longitude)));             }             rq.waypoints = cords;             rq.querycompleted += rw_querycompleted;             rq.queryasync();       void rw_querycompleted(object sender, querycompletedeventargs<route> e)     {         try {              if (e.error == null)             {                 route myroute = e.result;                                 maproute = new maproute(myroute);                 maproute.color = (color)application.current.resources["phoneaccentcolor"];                 mymap.addroute(maproute);                       }         }         catch (exception error) { messagebox.show(error.message); messagebox.show(error.stacktrace); leavefeedback(error.stacktrace); }     } 

i haven't been able test yet think answer looking for.

 rq.routeoptimization = routeoptimization.minimizedistance; 

this documentation found

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.maps.services.routeoptimization(v=vs.105).aspx

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.maps.services.routequery(v=vs.105).aspx


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -