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

Store Distance Calculations

This is a discussion on Store Distance Calculations within the Tips and Tricks forums, part of the MapPoint Desktop Discussion category; Hello! I have a problem that is probably not unique: I have a list of about 100,000 customer addresses, and ...

  1. #1
    krish is offline Junior Member White Belt
    Join Date
    Jan 2012
    Posts
    4

    Store Distance Calculations

    Hello!
    I have a problem that is probably not unique:

    I have a list of about 100,000 customer addresses, and about 1000 store addresses, both all across USA. For each customer, I want a list of the closest 5 stores (based on drive time), with drive time information. I am open to any external add on software (to mappoint) which can make this task simpler.

    Finding the distance between each customer address and each store address has been discussed, but I am pretty sure that it would be too expensive and could be too time consuming (100 million distance calculations even at 100 per second would take 277 hours!).
    Thanks for looking at my question, hope I get an answer soon!

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

    Re: Store Distance Calculations

    Straight line calculations are really fast - almost instantaneous, whereas drive time calculations take some time (often 1-2 seconds) so what I'd probably recommend is something first calculating the closest 10 stores based on straight line distance, and then calculate the drive times to each one to determine which are the nearest 5 stores based on drive time. Hope that makes sense.

    However, you'd still be talking about a million drive time calculations which - you can do the math, but possibly YEARS to finish, hehe. Are you sure you need that many drive time calculations? Could you get by with straight line distance?

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

  3. #3
    krish is offline Junior Member White Belt
    Join Date
    Jan 2012
    Posts
    4

    Re: Store Distance Calculations

    Trust me, I tried saying that it was the best way, at least to shorten the list to a manageable level before going for the drive time calculation. But it was shot down, based on a few exceptions to the rule - like a customer living on an island but has only one road for access (but the closest stores are not accessible by road) and stuff like that. Even in that case, if I had a list of 100,000 customer addresses and 10 stores for each customer, is there any easy way to get the drive times and distances for this list?

    I was wondering if there was any kind of alternate software, which would start from the customer locations, and then calculate the distance and drive time only to the nearest stores? That would not do the same number of calculations.

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

    Re: Store Distance Calculations

    You can write a macro for instance in Excel that would loop over and do all the calculations. You can do straight line calculations in Excel using trigonometry (which does not need MapPoint) and you can get the drive time calculations by automating MapPoint in Excel VBA. The code is straightforward to do and if you throw me some dollars for a few hours consulting time I'd be glad to help you with it

    When you say calculate only to the nearest stores, do you mean nearest straight line distances or nearest drive time?
    ~ Order MapPoint MapPoint 2011 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  5. #5
    PROFIT100 Consulting is offline Member Green Belt
    Join Date
    Sep 2009
    Location
    Darmstadt, Germany
    Posts
    94

    Re: Store Distance Calculations

    We developed an excel-AddIn that fits your needs, itīs IC-DistanceAnalysis.
    You can define either a radius or a drivetimezone around your 1000 stores.
    The program will find all the customers within und will sort them by distance and/or time.

    You will get a free 3-month license if you register.

    Kind regards
    Manfred

  6. #6
    krish is offline Junior Member White Belt
    Join Date
    Jan 2012
    Posts
    4

    Re: Store Distance Calculations

    Hi Eric,
    Thanks for the offer! I use SAS and there is a built in function for finding the distance between zip centroids or lat/longs, so trigonometry wise I'm covered Drive times and distances are my priority now.

  7. #7
    krish is offline Junior Member White Belt
    Join Date
    Jan 2012
    Posts
    4

    Re: Store Distance Calculations

    Hi Manfred,
    Thanks for sharing the info on your software, I will check out the demo!

  8. #8
    PROFIT100 Consulting is offline Member Green Belt
    Join Date
    Sep 2009
    Location
    Darmstadt, Germany
    Posts
    94

    Re: Store Distance Calculations

    Hi krish,

    The demo-version will not work, because you will need the professional version of IC-DistanceAnalysis to use the perimeter-feature.
    Register an I will send you a license-key.
    Manfred

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Road Distance Calculations
    By Merrows in forum Development
    Replies: 7
    Last Post: 02-20-2009, 02:06 PM
  2. Automated client/center distance calculations
    By beth in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 09-22-2006, 09:03 AM
  3. Demographic Calculations
    By Jim in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-08-2005, 12:29 PM
  4. Distance Calculations in Mappoint
    By SiGreenwood in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-01-2005, 10:56 PM
  5. My calculations on distance and time appear to be wrong
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-27-2004, 05:58 PM

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