The demo attempts to use the Geolocation API to display the user's current location.
navigator.geolocation.getCurrentPosition( p => { displayText(`Successfully retrieved geolocation(${p.coords.latitude}, ${p.coords.longitude})`); }, err => { displayText(`Failed to retrieve geolocation: ${err.message}`); });