MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Route Direction Location Instruction

This is a discussion on Route Direction Location Instruction within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; How can I get the Unknown Location of a Direction Instruction: Sample vb code: With Route.Directions.Item(x) .Location => returns route ...


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 10-16-2005
Junior Member
White Belt
 
Join Date: Oct 2005
Posts: 2
Route Direction Location Instruction

How can I get the Unknown Location of a Direction Instruction:

Sample vb code:

With Route.Directions.Item(x)
.Location =>
returns route segment midpoint of an imaginary straight line between segment start and end point, not the segment starting location.

.Instruction =>
returns the segment starting point instruction at the Unknown Location.
End With


I thought about creating a circle with:
center = Route.Directions.Item(x).Location
and
radius = segment distance / 2
but the segment distance is the total road distance and thus can not be used. Even if it could be used, as far as I know, no method exists to intersect a shape (circle) with the Route returning a collection of Locations.

Thanks in advance for any help.
DavidW
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 10-17-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

I dont understeand the question. Please refrase in simple English..
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 10-17-2005
Junior Member
White Belt
 
Join Date: Oct 2005
Posts: 2
Route Direction Location Instruction

Thanks for your speedy response.

I am looking for:
the exact Location of each Driving Instruction in a Route.

The Route.Directions.Item(x).Location does not give me the Location of the Instruction, but gives me the midpoint Location between the start and end point of Route segment x.

Hope this question is better phrased than my previous posting.
Thanks
DavidW
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 10-17-2005
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
It doesn't even do that. Usually it is pretty close to the mid-point between start and end, but it is actually the location required to get a "good view" of the route segment.

The location is the centre of such a view and also has the altitude (zoom) property set accordingly.

MapPoint doesn't openly expose locations that are exactly along a route.


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
Reply

Tags
direction, instruction, location, route


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
Extracting street names from route Instruction Curt MapPoint 2006/2009 Discussion 1 08-18-2005 02:56 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:24 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