software mastery, the fun way

The GeoLocation API2

The GeoLocation API is one of the new JavaScript APIs that most modern browsers support, including mobile browsers. It’s not officially part of the HMTL5 standard (yet), but it’s often mentioned as a new HTML5 feature. The API is small and easy to use; the main function is to get your location as a latitude and longitude for placing a marker on a map.

In this video, you’ll learn the basics of the GeoLocation API: how to get your current location. And you’ll also learn how to use the Google Maps API to turn that location into a marker on a map in a Web page.

Let me know if you have any feedback or create your own GeoLocation-enabled Web pages!

  • Emil H

    OK I see nothing?

  • Emil H

    OK Patience is a virtue, after 40min it all downloaded.
    Neat!

  • Emil H

    Could not get this to work. Never got the error messages or the permission request.
    Checked the browser and had geo turned on

  • Anonymous

    Try a different browser, and make sure you’re using http://localhost to serve the files…