Added code to geoLocation controller.