linking points

starbuck
01-08-2005, 06:06 PM
Hi

I was thinking about somthing like what you see when you create a route plan, eg a line between the different stop points but in this case a line between the vehicles given poll readings for a selected day.

Regards

Wilfried
01-09-2005, 07:17 AM
Hi,

Several approach possible the most nice (but far from accurate) is to let mappoint calculate a route with the various waypoints. But since GPS is many times not accurate you will have strange and wrong results.

For example, vehicle is driving on a certain highway north, and 1 of the positions is on the left wide of the road (the side where they drive south. Then mappoint will calculate the route so that it gets off the higway, then back on to in in opposite direction etc.

Also if there are many roads between 2 point then the calculated route is not nececary the one that is taken. So I think a program may NOT do imaginations because then it is a false program. A dispatcher may do imagintions.

I ended up to connect all vehicle positions with an arrow. At least the program give the right information about driving directions. Like this:
Shape s = MP.ActiveMap.Shapes.AddLine(Loc1, Loc2);
s.Line.EndArrowhead = true;
s.Line.Weight = 1;
Loc1 and Loc2 are Location objects. You have one for each pushpin. And the Weight is because default mappoint draws otherwize very ugly fat lines :(

starbuck
01-09-2005, 11:56 AM
Many thanks

 
Web mp2kmag.com
mapforums.com