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

Force crossing point

This is a discussion on Force crossing point within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello I am using mappoint Europe 2004 and access 2003 to map routes from London to France or elsewhere in ...

  1. #1
    JoeBo is offline Member Yellow Belt
    Join Date
    May 2007
    Posts
    31

    Force crossing point

    Hello

    I am using mappoint Europe 2004 and access 2003 to map routes from London to France or elsewhere in continental Europe, the resulting route always uses the “Calais Dover (East)” . My preferred route would by via the Euro Shuttle crossing. I have tried placing a drawing object over Dover and avoiding the object, this results in other sea ferry routes being chosen? Is it possible to force the use of the Shuttle??

    Regards
    Joe

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

    Re: Force crossing point

    Hi,

    Maybe the most easy is to set 'via' points at the begin/end points of the shuttle ? Another approach could be to set 'avoided' on all but the shuttle's begin/end points ?

  3. #3
    JoeBo is offline Member Yellow Belt
    Join Date
    May 2007
    Posts
    31

    Re: Force crossing point

    Hi Wilfried

    I have attempted to force the crossing using your suggested method. I have also attempted force the crossing by avoiding other ferry terminals, but mappoint insists on finding endless other ferry crossings, which makes it appear that it is not a true crossing point in the 2004 version?

    Regards
    Joe

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

    Re: Force crossing point

    Hi Joe,

    Strange. Maybe a workaround is to calculate 2 routes ? 1 from start point to startpoint of shuttle, and the second from endpoint of shuttle to destination ?

    If you do this from out of your own program the it will be not a problem I guess. If you have to do this from out of the standalone executable then you end up with 2 routes of course which may be not very confortable.

  5. #5
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Force crossing point

    I'm not quite picturing it.

    JoeBo -- can you post a ptm file as an attachment ?

    Could you set a stop at the shuttle location - this forces the route to go through that point.

    If one stop doesn't work, try setting multiple stops along the route? (on either end of the Euro shuttle landing).

    I gues you'd have to have some login in Access that says when there is a route with one end in the UK and the other in on continental Europe that it places the(se) extra stop(s) at the shuttle.

    Eric

  6. #6
    JoeBo is offline Member Yellow Belt
    Join Date
    May 2007
    Posts
    31

    Re: Force crossing point

    Hi All
    I have attached a ptm for your information. I have tried all suggested mapping methods with exactly the same result. Mappoint fails to find the euro tunnel terminal using the address so the access point to the tunnel is forced through:
    (Set Loc = objMap.GetLocation(51.09362, 1.12151, 100))
    All other locations are mapped using:
    Set Loc = objMap.FindAddressResults(StreetAddress, City, OtherCity, County, Postcode, Country)(1)
    Regards
    Joe
    Attached Files Attached Files

  7. #7
    JoeBo is offline Member Yellow Belt
    Join Date
    May 2007
    Posts
    31

    Smile Re: Force crossing point

    Hi

    I have managed to find the solution to this problem; I posted this query on the Microsoft site and was given much the same reply as Wilfred’s suggested method of placing waypoints at the start and end of the tunnel. Having tried this approach with no success I placed a waypoint mid channel (in the sea directly over the crossing) this had the desired result, forcing the use of the channel tunnel crossing. Code below.

    'Code tested on form named "FrmRoute"

    Dim mpApp As MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objRoute As MapPoint.Route
    Dim PP As MapPoint.Pushpin
    Dim WP As MapPoint.Waypoint
    Dim Loc As MapPoint.Location
    Set objMap = Forms.frmRoute.MappointControl3.ActiveMap

    Set objRoute = objMap.ActiveRoute
    objRoute.Clear

    PushPinName = "Collection Address"
    StreetAddress = Nz(Forms.frmRoute.Add1)
    City = Nz(Forms.frmRoute.Town)
    County = Nz(Forms.frmRoute.County)
    Postcode = Nz(Forms.frmRoute.PCode)
    Country = Nz(Forms.frmRoute.Country)
    Set Loc = objMap.FindAddressResults(StreetAddress, City, OtherCity, County, Postcode, Country)(1)
    Set PP = objMap.AddPushpin(Loc, PushPinName)
    Set WP = objRoute.Waypoints.add(PP)
    PushPinName = "Eurotunnel"
    Set Loc = objMap.GetLocation(51.03828, 1.48679)
    Set PP = objMap.AddPushpin(Loc, PushPinName)
    Set WP = objRoute.Waypoints.add(PP)


    PushPinName = "Delivery Address"
    StreetAddress = Nz(Forms.frmRoute.Add2)
    City = Nz(Forms.frmRoute.Town2)
    County = Nz(Forms.frmRoute.County2)
    Postcode = Nz(Forms.frmRoute.PCode2)
    Country = Nz(Forms.frmRoute.Country2)
    Set Loc = objMap.FindAddressResults(StreetAddress, City, therCity, County, Postcode, Country)(1)
    Set PP = objMap.AddPushpin(Loc, PushPinName)
    Set WP = objRoute.Waypoints.add(PP)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Force/unlock scales outside US/EU?
    By vtecy in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-24-2007, 08:44 AM
  2. get street numbers of crossing lines
    By Th.M.Mädzulat in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 02-04-2006, 01:21 PM
  3. Map Point Point Of Interest
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 02-14-2005, 09:19 AM
  4. How is possible to force order in Recordset?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-27-2004, 04:06 AM
  5. How to find the next crossing street on a route
    By dzhong in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-05-2003, 06:20 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