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

Lunches

This is a discussion on Lunches within the Development forums, part of the MapPoint Desktop Discussion category; I am trying to program lunch stops via VBA and the only way I have found to do it is ...

  1. #1
    Doc203 is offline Junior Member Yellow Belt
    Join Date
    Jan 2011
    Posts
    23

    Lunches

    I am trying to program lunch stops via VBA and the only way I have found to do it is via the "rest stop" method. I would like to be able to set the exact time and length someone might take a lunch, but cannot do so by adding a stop because the stops are dynamic every day. The problem with using automated rest stops is time spent at each stop is not accounted for, therefor the rest stop is based upon driving time only and can be very random. Anyone have any ideas?

    Thanks,

    Jim

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

    Re: Lunches

    Can they always take a break right AFTER a delivery and not somewhere along a route?

    I guess the first way I'd try to approach this is to set up the route and calculate, then loop over the stops and find the first one say after 12 NOON. It might be 12:05 or 12:45 or whatever. Then add a STOPTIME to that stop with the lunch time, whatever it is, say 1 hour.

    Does that make sense?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Doc203 is offline Junior Member Yellow Belt
    Join Date
    Jan 2011
    Posts
    23

    Re: Lunches

    Yes that makes perfect sense Eric - exactly what I was looking for.

    Thanks,

    Jim

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

    Re: Lunches

    Maybe you can find the first stop after 12 Noon, and then also check the previous one to see which is closer to 12 Noon.

    In case for instance you have one stop at 11:55 AM and the next is not until 1:15 PM for instance.

    Let us know if you get stuck and maybe you can post a sample Excel file and we can help work it out.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

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

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