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
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Help with freeway exit

This is a discussion on Help with freeway exit within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello Every one If anybody could help with this please, I have been beating my head against it for weeks. ...

  1. #1
    ksliman is offline Junior Member White Belt
    Join Date
    Feb 2007
    Posts
    6

    Help with freeway exit

    Hello Every one

    If anybody could help with this please, I have been beating my head against it for weeks.

    OK

    I know that MapPoint will not put a starting point of a route on a highway by design. I was trying to figure out if I can make it put the starting point on an exit or an on ramp. For example: I tried this using the map point application , I zoomed to the highway, I found an exit/on ramp there was a white dot there, the dot is clickable and can be set as the starting or end point of a ramp. Here is a picture of what I am talking about
    Question.JPG

    Is there way to find that dot by using the MapPoint API, or any other method.

    Thanks in advance for any help

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Help with freeway exit

    Hi,

    Yes, these are location objects jus as the others. If you try a ObjectsFromPoint near to such a point you will see it show up in the results of it.

  3. #3
    ksliman is offline Junior Member White Belt
    Join Date
    Feb 2007
    Posts
    6

    Re: Help with freeway exit

    Thanks, I will Check that ASAP.

  4. #4
    ksliman is offline Junior Member White Belt
    Join Date
    Feb 2007
    Posts
    6

    Re: Help with freeway exit

    Ok , I checked it , But ObjectsFromPoint does not return these in the list of Locations, any other Ideas.

  5. #5
    kaka is offline Junior Member White Belt
    Join Date
    Feb 2007
    Posts
    2

    Re: Help with freeway exit

    hello everyone,,,
    iam new to this site..
    pls help me..
    iam given a task to develop a homepage tht shud store maps,store pins with relative positions on maps,mechanism to recreate from database,moving pins and uploading map..
    how to do all these things..can i use JSP,J2EE..


    pls give some suggetions...plsss..
    anticipating everyone's reply!!

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Help with freeway exit

    Hi,

    Yes it does. I checked it out with such a point. The point was as in your example a highway entry / exit. It has a number. The number is returned as name in the collection returned from ObjectsFromPoint.

  7. #7
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Help with freeway exit

    Quote Originally Posted by kaka View Post
    hello everyone,,,
    iam new to this site..
    pls help me..
    iam given a task to develop a homepage tht shud store maps,store pins with relative positions on maps,mechanism to recreate from database,moving pins and uploading map..
    how to do all these things..can i use JSP,J2EE..


    pls give some suggetions...plsss..
    anticipating everyone's reply!!
    Please start a new thread and use appropriate subject. Your question is nothing todo with the freeway exit problem.

  8. #8
    ksliman is offline Junior Member White Belt
    Join Date
    Feb 2007
    Posts
    6

    Re: Help with freeway exit

    Ok, I will try it again, But this is what I did,

    On My form in the beforeClick Event I get the X and Y of the mouse and then click on one of those points, inside the event I do an ObjectsFromPoint call, and loop through the returned Locations, I dont get the number of the point, all I get is the name of the highway. But I will try it again... Thank you for your help.

    Quote Originally Posted by Wilfried View Post
    Hi,

    Yes it does. I checked it out with such a point. The point was as in your example a highway entry / exit. It has a number. The number is returned as name in the collection returned from ObjectsFromPoint.

  9. #9
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Help with freeway exit

    Hi,

    Your method should work. I tryed it with a position. I still had the code not deleted, so here it is. If you have MapPoint EU you can try the same. It is an hiway exit near Antwerp and the exit number was also listed in the console.

    Code:
        double lat = 51.22638;
        double lon = 4.44642;
        Location loc = MP.ActiveMap.GetLocation(lat, lon, 1);
        loc.GoTo();
        FindResults results = MP.ActiveMap.ObjectsFromPoint(MP.ActiveMap.LocationToX(loc), MP.ActiveMap.LocationToY(loc));
        foreach (object o in results) {
    	loc = o as Location;
    	if (o == null)
    	    continue;
    	Console.WriteLine(loc.Name);
        }

  10. #10
    ksliman is offline Junior Member White Belt
    Join Date
    Feb 2007
    Posts
    6

    Re: Help with freeway exit

    Quote Originally Posted by Wilfried View Post
    Hi,

    Your method should work. I tryed it with a position. I still had the code not deleted, so here it is. If you have MapPoint EU you can try the same. It is an hiway exit near Antwerp and the exit number was also listed in the console.

    Code:
        double lat = 51.22638;
        double lon = 4.44642;
        Location loc = MP.ActiveMap.GetLocation(lat, lon, 1);
        loc.GoTo();
        FindResults results = MP.ActiveMap.ObjectsFromPoint(MP.ActiveMap.LocationToX(loc), MP.ActiveMap.LocationToY(loc));
        foreach (object o in results) {
        loc = o as Location;
        if (o == null)
            continue;
        Console.WriteLine(loc.Name);
        }
    Yeah after looking at it for a while I figured it out, I found out that my problem is this.

    I am get my Current Location from a GPS, so the map is allways moving, and I noticed when I approch one of these points it gets skipped, I guessI have to figure out a different way. you see I am trying to make a routing application. I thought if maybe I store the location of these points as I pass them, if I miss a turn I can reroute from the last point I passed and this way MapPoint wont draw that stupid straight line out side the highway to local roads. ( I really hate that we are using MapPoint 06) and microsoft has not fixed the Highway routing Issue. That is crazy. (do you know of a way around that or is impossible to originat a route on a highway.

    Thanks for your help.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Search by highway exit numbers
    By payers24 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-30-2005, 03:29 PM
  2. Motorway/Road Junction/Exit numbers MP2004 (ALL OF EUROPE!)
    By daxydoggie in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 11-25-2003, 11:45 AM
  3. Access Violations on exit in delphi
    By matt1168 in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-21-2003, 11:23 AM
  4. Freeway Exit Numbers
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-24-2002, 03:43 PM

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 26 27