MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Route direction TURNS location

This is a discussion on Route direction TURNS location within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, Regarding the fact that the Mappoint gives a best view location of a direction segment, instead of an exact ...


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 08-24-2006
Junior Member
White Belt
 
Join Date: Aug 2006
Posts: 8
Question Route direction TURNS location

Hi,

Regarding the fact that the Mappoint gives a best view location of a direction segment, instead of an exact location, i have a question :

I have read and tried a lot lately trying to find the beginning (location) of of route segment, to be able to guide a driver along a route but so far nothing worked out.

Has anybody ever wondered how Chun li-Pu's addin AGPS for mappoint is
able to give route Turn information, and guide the driver ??

I did send an email to Chun but i did'nt get any response ....

Any ideas ????

Best regards, Ulti
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 08-24-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
I haven't tried AGPS, but is the route turn information, simply the directions that MapPoint produces? These are listed with the route segments and sub-segments.



Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 08-24-2006
Junior Member
White Belt
 
Join Date: Aug 2006
Posts: 8
Hi Richard,

AGPS is capable of displaying turn based information within a 50 or so meters of the turn and on the turn that has to be taken itself, i therefore think the author is able to get the (near) exact location of the start of a route segment.

And i'm wondering how he does just that. I know that
directions.item(x).location gives the best view location, instead of the exact location.

I'm trying to give a driver a "TURN LEFT HERE" message while driving a route 50 meters before the actual left turn ...

I hope you understand what i mean ...

Thanks for the reply !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 08-24-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
One scheme I tried a while ago was to interpolate/extrapolate the segment engs - but you must assume that the segment is a straight line and the location provided by MP is the mid-point.

Under many circumstances that would work very well. Is it possible that AGPS is doing something similar?

Another approach and probably more reliable approach for your specific question, would be to find the distance form the GPS location to the route segments. Whcih is the closest? If two adjacent segments are both very close (50m?) then you're near the change from one to the other.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 08-25-2006
Junior Member
White Belt
 
Join Date: Aug 2006
Posts: 8
Great thinking Richard !

I going to experiment with the distance to route segments option...

Regarding the AGPS software : AGPS is run as an addin from within Mappoint, the exact locations of the route segment turns are not available to us trough the axtiveX object, maybe they are when using a addin ??

Any ideas ?

I'll keep you informed ! Thanks for replying !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 08-25-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
No, the choice of Addin or ActiveX does not make a difference. The "low level" interface and objects are identical for both. The only differences are the "big objects" - eg. Control vs. Application.

I did my route digitization experiments using the "Application" interface, invoking MapPoint as a standalone application.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 08-29-2006
Junior Member
White Belt
 
Join Date: Aug 2006
Posts: 8
Hi Richard,

Thanks for your intrest ! I'm using the MP control from within my own application.

I've been busy experimenting with your route segments idea. While playing
around i think i found a usable workaround to the whole best view VS exact location problem. Using GPS position, and 2 location objects, i move the start waypoint of a route every 10 meters, and calculate a new route.

The directions.item(1).distance property gives the distance to travel until the next direction instruction. By moving the first waypoint this distance decreases ( if you follow the route, that is). When the distance is smaller then 50 meter or so, i display the next direction instruction.

It will need some cleaning and further experimenting but i think this
is usable. It will only give me "hard" direction instructions, for example Turn Left, road name changes ..... I still have to figure out what to do with the instructions that are not expanded ....

I'll keep you informed of my progress, if still intrested .....

Best regards, Ulti
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 08-29-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Quote:
I'll keep you informed of my progress, if still intrested .....
Yes please because this is very interesting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 08-30-2006
Junior Member
White Belt
 
Join Date: Aug 2006
Posts: 8
Hi Wilfried,

ok, i will post my finding here ...

Did some testing on tuesday, for now it is working exactly as i thought it would. The only thing is that the re-calculation a route sets the zoom to display the entire (new) route. So, by moving the start waypoint with every new gps coordinate the map is flashing like crazy. Also the itinerary windows comes up every calculation.

I've added a second control which contains the entire original route, and the current position from my gps coodinate. The first control does the movement of waypoint 1 and route calculation, in order to display the turn instructions before you actually need to make the turn.

This control is not visible. The directions.distance value is monitored and when the distance to the instruction is doubled you probably missed the turn, a new route is calculated for both controls, displaying a new drive possibility on the control that is visible.

I hope you can follow what it is trying to accomplish here...
When i'm busy programming everything makes sense, but to communicate your thoughts is something else ....

Thanks !

Best regards, Ulti

Last edited by ultiblade; 08-30-2006 at 06:16 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 08-30-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Yes it make sense Looks a good idea and I'm glad it works as expected. You can set ItineraryVisible to false to not display the drive directions. You can do that also in the inviseble control. Possible it decrease the calculation time a little.
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
direction, location, route, turns


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
Route Direction Location Instruction disweij MapPoint 2006/2009 Discussion 3 10-17-2005 02:45 PM
Map Route with other location Anonymous MapPoint Web Service and Virtual Earth 1 03-29-2005 09:18 AM
Map Route with other location Anonymous MapPoint 2006/2009 Discussion 0 02-14-2005 09:19 PM
Fix Direction Location Bob Chase Wish List 0 03-21-2003 06:31 AM
Direction.location all wrong when more then 2 waypoints.? johnny MapPoint 2006/2009 Discussion 0 01-20-2003 11:36 AM


All times are GMT -5. The time now is 10:22 PM.


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