I have placed the geolocation call in a service which I want to use in different areas of the application. However, undefined is being returned. How do I return the value proper