MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Trying to get distance considering driver's current heading

This is a discussion on Trying to get distance considering driver's current heading within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Greetings, I have included a simplified version of the code I use to calculate the distance from the driver's last ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-2005
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
Trying to get distance considering driver's current heading

Greetings,

I have included a simplified version of the code I use to calculate the distance from the driver's last known location to his next stop.

MapPoint.Location locA =
mpMap.GetLocation( pointA.Latitude, pointA.Longitude, 100 );
mpRoute.Waypoints.Add( locA, "locA" );

MapPoint.Location locB =
mpMap.GetLocation( pointB.Latitude, pointB.Longitude, 100 );
mpRoute.Waypoints.Add( locB, "locB" );

mpRoute.Calculate();

But I need a way to introduce the driver's last known HEADING, otherwise using simply his last known LOCATION will produce an unrealistic route. If he's driving east, then there's no point in using MapPoint's best estimate,
which may require that he head west. I have no ability to re-direct the driver; I'm simply using MapPoint to help create an educated guess when the driver will arrive.

Does anyone know how to use his heading to get MapPoint to make a more realistic route between the two points?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 11-10-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

Looks tricky to do. One way could be to set a waypoint on the same road in the direction where the vehicle runs on a point where it could be at the current speed and then calculate.

However next problem is to get that point snap to a road, easy done, but you dont know ifit is the road, and heading.. maybe the car is just in a curve?

I should say it is word to try but I dont think you can have good results. However maybe the one idea brings out other ideas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
current, distance, driver, heading


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Saving current view of map radiusdude MapPoint 2006/2009 Discussion 2 04-05-2005 08:36 AM
Getting current GPS coordinates in VB6 Anonymous MapPoint 2006/2009 Discussion 2 06-10-2004 06:09 PM
Distance from current location to next turn point dzhong MapPoint 2006/2009 Discussion 0 12-24-2002 02:03 PM
Is it possible to expand upon the current 255 push.... Anonymous MapPoint 2006/2009 Discussion 1 04-16-2002 10:32 PM
I am the current user of MapPoint2000. I would lik.... Anonymous MapPoint 2006/2009 Discussion 1 01-18-2001 08:28 AM


All times are GMT -5. The time now is 06:21 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54