Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

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

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

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. #1
    disweij is offline 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. #2
    Wilfried is offline 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. #3
    disweij is offline 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

  4. #4
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extracting street names from route Instruction
    By Curt in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 06-28-2010, 03:24 AM
  2. Map Route with other location
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 03-29-2005, 09:18 AM
  3. Map Route with other location
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-14-2005, 09:19 PM
  4. Fix Direction Location
    By Bob Chase in forum Wish List
    Replies: 0
    Last Post: 03-21-2003, 06:31 AM
  5. Direction.location all wrong when more then 2 waypoints.?
    By johnny in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-20-2003, 11:36 AM

Tags for this Thread

Posting Permissions

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


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