Hi thanks for replying. Both those links would suffice for the purpose of calculating the distance between the consumer and the outlet, however what I need to do is automate a routine that took the long and lat of the consumer (using postcode to generate the long and lat) and then checked their distance against all 800 stores and selected the nearest store. I don't have the long and lat but I am sure there must be a way of auto generating them too.
Any help, as always, much appeciated! Thank you.
Main Topics
Browse All Topics





by: pgnatyukPosted on 2009-07-20 at 11:16:58ID: 24897508
Sorry, I don't understand.
Do you mean something like this: http://jan.ucc.nau.edu/~cv m/latlongd ist.html
or Google distance: http://www.daftlogic.com/p rojects-go ogle-maps- distance-c alculator. htm
Or just trivial distance between two points: sqrt(x * x + y * y)
Do you have coordinates of this stores and customers? or it's set as state, city (zip), street, house?