Welcome to MapForums!

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

## Route Direction Location Instruction

This is a discussion on Route Direction Location Instruction within the MapPoint Desktop 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 ...

1. 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

2. Senior Member Black Belt
Join Date
Nov 2004
Location
Belgium
Posts
2,433
Hi,

I dont understeand the question. Please refrase in simple English..

3. Junior Member White Belt
Join Date
Oct 2005
Posts
2

## Route Direction Location Instruction

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

4. 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

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•