Community of VE/MapPoint Users and Developers
This is a discussion on Get direction from point a to point b??? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am trying to mimick some functionality that GeoMap provides. You can set a home location and a destination and ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Get direction from point a to point b??? Thanks
__________________ Jonathan Knapek |
| |||
|
Hi Jonathan, You do not mean a route planning, just the direction in degrees from point a to point b, is that correct ? Further you can do what you want to do in OnBeforeClick event handler. There you know the x,y coordinates of where the user has clicked and can do the calculation and display.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| I'm talking about a literal direction (North, South, etc...
I figured out how to plan a route, but I still haven't figured out how to extract a literal direciton. I need to use the direction from point a to point b to decide what Icon to display on the screen. Thanks, Jonathan
__________________ Jonathan Knapek |
| |||
| Calculating degrees...
So if I can get the Longitude and Latitude of each location, then I should be able to calculate the + or - degrees from point a to point b and derive a compass direction from that? Has anyone done this before? Thanks.
__________________ Jonathan Knapek |
| |||
| Routing should give you the direction
I think if you tell MapPoint to route from 1 location to another it will also give you the direction you need to go: oRoute.Waypoints.Add oMap.FindPushpin(RoutePoint(g - 1)) oRoute.Waypoints.Add oMap.FindPushpin(RoutePoint(g)) oRoute.Calculate From that you should be able to pick up if your going North VS South or East VS West, etc. Hope it helps. |
| |||
| Re: Routing should give you the direction Quote:
I probably should have described it better. I put my plotted pins on the map in an array. Then I just calculate the driving directions with the oRoute.Calculate method. Then the results from the oRoute.Calculate is easily put to a flex grid. It should provide the info you need to get the direction of travel. |
| |||
| Re: Calculating degrees...
Hi, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| direction, point |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Map Point Point Of Interest | Anonymous | MapPoint Web Service and Virtual Earth | 1 | 02-14-2005 09:19 AM |
| New to MAP Point | Deepak | MapPoint 2006/2009 Discussion | 1 | 03-31-2004 10:01 AM |
| How can I find nearest point on a road from a point off-road | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-12-2002 07:14 AM |
| I am new to Map Point, and I am looking for the to.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-06-2002 01:27 PM |
| Using the Map Point API from VB I sometimes get th.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-05-2001 12:34 PM |