Sets up initial geolocation code.