<!DOCTYPE html>
<html lang="en">
   <head>
      <title>Przykad uycia API Geolocation</title>
   </head>
   <body>
      <script language="javascript" type="text/javascript">
         function locationFound(position) {
            alert('Twoje aktualne wsprzdne geograficzne to '
               + position.coords.latitude + ", " + position.coords.longitude); 
         }
         function errorOccurred(error) {
            alert('Wystpi bd podczas okrelania twojego pooenia geograficznego. '
               + error.message);
         }
         if (navigator.geolocation)
            navigator.geolocation.getCurrentPosition(locationFound, errorOccurred);
         else
            alert('Twoje urzdzenie nie obsuguje API geolokalizacji');
      </script>
   </body>
</html>
