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 7 of 7

using only Highway-Ramp as Waypoint ?

This is a discussion on using only Highway-Ramp as Waypoint ? within the Development forums, part of the MapPoint Desktop Discussion category; hi, on German Highway ( "Autobahn" ) every on/off Ramp have Waypoint. Sample : Hamburg -> München Street : "A1," ...

  1. #1
    Auge_Ohr's Avatar
    Auge_Ohr is offline Member Green Belt
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    65

    using only Highway-Ramp as Waypoint ?

    hi,

    on German Highway ( "Autobahn" ) every on/off Ramp have Waypoint.

    Sample : Hamburg -> München
    Street : "A1,"

    now MP will list all Waypoints from Highway "A1"
    later it will change to "A3," "A9," util i reach München.

    Question :
    a.) if i do Start from a "real" Streetname next to a Highway Ramp
    and same with End Waypoint it will "optimize" quick.

    b.) if i do Start with "on-Ramp" and End is "off-Ramp" than MP will "leave"
    Highway without any Sence ... why ?

    ad a.)
    sorry, it is Xbase++ ...
    Code:
     // EUR Version
     ::oMap:NewMap( geoMapEurope )
     ::oMap:Units := geoKm
     ::oMap:show()
     //
     // is this the "fastes" possible ... 250KM/h ?
     //
    ::oMap:ActiveMap:ActiveRoute:DriverProfile:setProperty(;
                                 "Speed",geoRoadInterstate,250)
    ::oMap:ActiveMap:ActiveRoute:DriverProfile:setProperty(;
                                 "PreferredRoads",geoRoadInterstate,1)
    
    ::oMap:ActiveMap:ActiveRoute:Clear()
    
    //
    // will work if i start with a "real" Street next to Highway
    //
    * oResult := ::oMap:ActiveMap:FindAddressResults("Teststrasse",;
    *                                                  "Testort"      ,;
    *                                                  NIL              ,;
    *                                                  NIL              ,;
    *                                                  "00001"        ,;
    *                                                                   geoCountryGermany  )
    
    //
    // will find all "A1," German "Autobahn" Highway Ramps
    //
    oResult := ::oMap:ActiveMap:FindAddressResults("A1,",;  // Street
                                                                       NIL,;    // City 
                                                                       NIL,;    // OtherCity
                                                                       NIL,;    // Region
                                                                       NIL,;    // PostalCode
                                                                       geoCountryGermany  )
    // how much ? -> 237
    imax := oResult:Count()
    
    // found Result, do Action
    IF imax > 0
      // "where" do i set this statment ?
      ::oMap:ActiveMap:ActiveRoute:Waypoints:Optimize()
      ...
      FOR i := 1 TO iMax
      //
      // now add Waypoints for every Element
      //
      ::oMap:ActiveMap:ActiveRoute:Waypoints:Add(oResult:Item(i))
      ::oMap:ActiveMap:ActiveRoute:Waypoints:Item(u):SegmentPreferences := geoSegmentPreferred
    
      NEXT
    
      IF .NOT. ::oMap:ActiveMap:ActiveRoute:Waypoints:IsOptimized()
        TONE(1000)
        nTime   := SECONDS()
        ::oMap:ActiveMap:ActiveRoute:Waypoints:Optimize()
        MSGBOX( "optimize time "+STR(SECONDS()-nTime)+" Sec." )
      ENDIF
      //
      // now calculate Waypoints
      // 
      ::oMap:ActiveMap:ActiveRoute:Calculate()
    
    ENDIF
    after some seconds i can "see" MP begin to put PINs as Waypoint.

    when i "hear" TONE() i knew MP will begin to optimize 237 Waypoint.
    all are "Autobahn" Highway Ramps on same(!!!) "Autobahn"

    i do not know how long it take ... it is still working since Hour´s ...

    ad b.)
    same Code without optimize will show : MP "leave" Highway Ramp drive to
    nowhere ... before return to "Autobahn" ... why ?
    Last edited by Auge_Ohr; 09-23-2008 at 05:37 PM.

  2. #2
    Auge_Ohr's Avatar
    Auge_Ohr is offline Member Green Belt
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    65

    Re: using only Highway-Ramp as Waypoint ?

    hi,


    ok i made i mistake. when i typ "A7," i will get all Highway Ramps ... but for
    both (!) Side from Highway as Waypoints.

    when "driving" from North -> South and i got 2 Waypoint with "about same"
    Distance which on is "on my Side" ( Germany right Side, so it must be West ?)

    some Idee welcome

  3. #3
    Auge_Ohr's Avatar
    Auge_Ohr is offline Member Green Belt
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    65

    Re: using only Highway-Ramp as Waypoint ?

    hi,

    i like to go in this Thread an enhance my Question.

    like i say i got Location from Mappoint when used
    Code:
    ::oMap:ActiveMap:FindAddressResults("A1," ... geoCountryGermany  )
    for German Autobahn BAB A1. Now i set all Location as AddPushpin() and look
    at it ... but most time i can no "see" a Ramp ? the PushPin is "on" Highway.

    Next try was to use "Toll Collect" Table, but there are no Geodata or ZIP
    Code and "City" is often some Kilometer away ...

    I did have give every PushPin:Name := Distance Kilometer and i have used
    "CalcPos" to get Latitude and Longitude for every PushPin.

    the "Toll Collect" Table also have Kilometer as Field Data.

    Sample :
    Code:
    PushPin1:ID  8.414KM       54.23002   10.89815
    
    TC        : 10.000KM       ??.?????   ??.?????
    
    PushPin2:ID 11.310KM       54.20399   10.89938
    how to find TC Latitude and Longitude ?

  4. #4
    Auge_Ohr's Avatar
    Auge_Ohr is offline Member Green Belt
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    65

    Re: using only Highway-Ramp as Waypoint ?

    hi,
    Quote Originally Posted by Auge_Ohr View Post
    Code:
    PushPin1:ID  8.414KM       54.23002   10.89815
    
    TC        : 10.000KM       ??.?????   ??.?????
    
    PushPin2:ID 11.310KM       54.20399   10.89938
    how to find TC Latitude and Longitude ?
    found it :
    Attached Images Attached Images
    greetings by OHR
    Jimmy

  5. #5
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60

    Re: using only Highway-Ramp as Waypoint ?

    I couldn't understand exactly what the question was asking, but Pythagoras does not work with longitude, latitude coordinates.

    The Aviation Formulary at:

    Aviation Formulary V1.43

    Is a good source of geometry-on-a-sphere formula.

    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  6. #6
    Auge_Ohr's Avatar
    Auge_Ohr is offline Member Green Belt
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    65

    Re: using only Highway-Ramp as Waypoint ?

    hi,
    Quote Originally Posted by Winwaed View Post
    I couldn't understand exactly what the question was asking, but Pythagoras does not work with longitude, latitude coordinates.

    The Aviation Formulary at:

    Aviation Formulary V1.43

    Is a good source of geometry-on-a-sphere formula.
    thx for Advise, i will study it

    i´m still search German Autobahn "Ramp". I got, from MapPoint, 2 Pushpin
    and use CalcPos to get there Geo Koordinate. Between these both PushPin
    is a "Ramp" and it is almost a "straight line" for all 3.

    when using FindAddressResults("A1, ",NIL,NIL,NIL,NIL,geoCountryGermany)
    i got a lot of Item which Location is "on" Highway but most time it does
    not "hit" the "RAMP" ... it is between 2 Item´s ... so i try to calculate the
    "RAMP" Geo Koordinate while i have the Distance PushPin->Ramp->Pushpin.

    if there is a other Way to find Highway "RAMP", please tell me how.
    greetings by OHR
    Jimmy

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

    Re: using only Highway-Ramp as Waypoint ?

    I think the above article has a formula for a "point on a great circle".

    A true straight line on a sphere is actually a segment of a great circle. So this formula should be adaptable - there might even be a worked example.


    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. mission impossible? veicle tracking highway problem
    By bule in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 11-13-2006, 08:36 AM
  2. Search by highway exit numbers
    By payers24 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-30-2005, 03:29 PM
  3. Highway numbers
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-23-2004, 11:09 PM
  4. Put a waypoint!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-14-2003, 10:44 AM
  5. Calculate highway distances of a route
    By C72831 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-08-2003, 04:00 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 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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127