Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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 |
| ||||
|
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 |
| |||
|
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 ! |
| ||||
|
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 |
| |||
|
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 ! |
| ||||
|
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 |
| |||
|
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 |
| |||
|
Hi, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
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. |
| |||
|
Hi, Yes it make sense
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| direction, location, route, turns |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |