calculates distance between geo points. original code can be found here- http://stackoverflow.com/a/12969617