google maps
Find web visitor’s location automatically with javascript and Google APIs
Brian Cray does a great job of explaining the details on his site - http://briancray.com
Basically, put the following into a block and you're good to go.
How to calculate distance with javascript and Google Maps API
Brian Cray does a fantastic job of explaining how to use the Google Maps API to calculate the distance between two address.