in reply to Distance to nearest store

This has been addressed before on perlmonks in some depth: