moved remaining geolocation functions to router file