Calculate geographic distances. (deprecated)