Functions in geolocation.h