Using the geolocation API to build a location based app