geoip: added distance calculations