topical media & game development

talk show tell print

mobile-game-ch23-one-shot.htm / htm



  <!DOCTYPE HTML>
  <html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Grabbing the position</title>
  </head>
  <body>
    <script>
      function logPosition(position) {
        console.log(position);
      }
  
      function positionError(error) {
        console.log(error);
      }
  
      navigator.geolocation.getCurrentPosition(logPosition,positionError,{
        enableHighAccuracy: true
      });
    </script>
  </body>
  </html>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.