Basic HTML5 Geolocation sample:





More advanced Geolocation sample using Google Maps API: