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

Drive Times in Mappoint 2009

This is a discussion on Drive Times in Mappoint 2009 within the MapPoint Desktop Discussion forums, part of the Map Forums category; Coming from 2004 I see that the driving speeds are now sliders going from Slower to Faster instead of actual ...

  1. #1
    nickhoare is offline NickH Yellow Belt
    Join Date
    Jun 2008
    Location
    Bromsgrove, UK
    Posts
    24

    Drive Times in Mappoint 2009

    Coming from 2004 I see that the driving speeds are now sliders going from Slower to Faster instead of actual values. So you have no clue as to what speeds are used. I note that the driverprofile method still seems to work for Routes but what about Drive Time Zones? A drive time zone without knowing the speeds is almost useless for anything other than casual driving. And for casual driving I can't see any use in a drive time zone!

    Is this a move to limit the use of Mappoint for commercial applications, since you now can't specifically apply the latest average road speeds.

  2. #2
    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: Drive Times in Mappoint 2009

    I don't think Microsoft ever said why they made this change, but yes it is a bit impractical. In some ways a slider is easier to use than an edit box or spin button, but it would be very useful if there was a readout of the actual numeric speed!

    Paul Larson wrote an add-in that lets you set the different speeds as numbers. It is freeware and can be downloaded from my Mapping-Tools site, here:

    DriveSpeed: Easy Speed Entry in Microsoft MapPoint 2006


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

  3. #3
    nickhoare is offline NickH Yellow Belt
    Join Date
    Jun 2008
    Location
    Bromsgrove, UK
    Posts
    24

    Re: Drive Times in Mappoint 2009

    Thanks for this - it looks useful. The real question is how is this done in code since the only access to the speed is through the driverprofile which requires a Route. I will have to experiment.

    Nick

  4. #4
    davidb is offline Senior Member Blue Belt
    Join Date
    Oct 2003
    Location
    London
    Posts
    290

    Re: Drive Times in Mappoint 2009

    Out of interest if you run drivetime zones via code, and set up the driver speed profile as part of that code, then the drivetime zones appear to reflect those speeds. For example in excel vba

    Code:
    Private Sub DriveZone_Click()
    
      Dim objApp As MapPoint.Application
      Dim objMap As MapPoint.Map
      Dim objRoute As MapPoint.Route
      Dim objFindResults As MapPoint.FindResults
      Dim objPin As MapPoint.Pushpin
      Dim objLoc As MapPoint.Location
    
      Set objApp = CreateObject("MapPoint.Application.EU.16")
      objApp.Visible = True
      objApp.UserControl = True
      Set objMap = objApp.NewMap
      Set objRoute = objMap.ActiveRoute
      
      '---- Specify speeds by different class roads ----
          
        objApp.Units = geoKm
        objRoute.DriverProfile.Speed(geoRoadInterstate) = 85 ' Motorways
        objRoute.DriverProfile.Speed(geoRoadLimitedAccess) = 65
        objRoute.DriverProfile.Speed(geoRoadOtherHighway) = 34 ' Major Roads
        objRoute.DriverProfile.Speed(geoRoadStreet) = 25
        objRoute.DriverProfile.Speed(geoRoadArterial) = 30 ' Minor Roads
        
      '---- Locate address as hub for drivetime zone ----
     
      Set objLoc = objMap.FindAddressResults(, , , , "E4 7JA", geoCountryUnitedKingdom)(1)
      Set objPin = objMap.AddPushpin(objLoc, "Drivetime Hub")
      objLoc.GoTo
      
      '---- Generate drivetime zone ----
        
      Set objShape = objMap.Shapes.AddDrivetimeZone(objLoc, 45 * geoOneMinute)
          objShape.Line.ForeColor = vbBlue
          objShape.Line.Weight = 2
          objShape.SizeVisible = True
      
      '---- End program ----
      
      Set objApp = Nothing
      Set objMap = Nothing
      Set objRoute = Nothing
      Set objLoc = Nothing
      Set objPin = Nothing
      Set objShape = Nothing
      
    End Sub
    David
    UK mapping and map analysis services at www.broomanalysis.plus.com

  5. #5
    nickhoare is offline NickH Yellow Belt
    Join Date
    Jun 2008
    Location
    Bromsgrove, UK
    Posts
    24

    Re: Drive Times in Mappoint 2009 (and 2006 apparently)

    Thanks davidb! What I see is that there is an ActiveRoute object even when no route has been defined. And as you say, and as I have noticed, this determines the drivetime zones. I think having the speeds, and presumably all the other 'driving' parameters as properties of the 'Activeroute' is slightly confusing. It explains why you get to these via Route and 'More Options' (2004) rather than under the Tools/Options menu, though. Conceptually I think I was expecting a Map level DrivingProfile object(s).

    Whilst I can see that you couldn't easily assign drivingprofile objects to Routes and that the two are closely linked, the DriveTime Zone is not associated with a Route but still requires the DrivingProfile. A bit of a fudge, but in terms of Mappoint issues a fairly minor one.

    Interestingly if you change any of the speeds this clears the Route but it does not clear the DriveTimeZone . Because after creation it is just a shape I guess.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Installing MapPoint 2006 Using a Flash Drive
    By tpurkey in forum Development
    Replies: 10
    Last Post: 08-18-2011, 12:13 PM
  2. MapPoint 2009 Trial - how to change install drive
    By caldersj in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 01-21-2009, 05:55 AM
  3. Drive Times Return Wrong Result
    By Corby in forum Development
    Replies: 2
    Last Post: 01-08-2009, 04:36 PM
  4. Drive Times
    By UnionRef in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-31-2007, 10:30 AM
  5. Huge Number of Drive Times
    By lbequis in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-27-2005, 09:31 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 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