Does your site run on Perch CMS? Hire me to help. Perch CMS Development

Learning about HTML5 Geolocation

Posted on by Clive Walker in HTML5 12412

I wrote this post a while back. The content can still be relevant but the information I've linked to may not be available.

I wrote about the 12414 project a few months ago. It’s an initiative to encourage you to learn new things over the course of 2012 and I signed up so that I would have to set aside more time for personal learning over the course of the year. That’s been partly successful but I haven’t done as much as I would have liked in the first few months. However, what I have done is read up on the HTML5 Geolocation API 1, which is a subject that I didn’t know much about. Here are a few of the articles and tutorials that I have been reading.

1 Strictly speaking, the Geolocation API is not part of the HTML5 specification. However, it’s commonly associated with it so that’s good enough for me.

With all the demos, viewing with a GPS-enabled device gives the best results (of course). Your browser will need to support the Geolocation API as well; the latest versions of common browsers and mobile OS all support it.

In summary

The HTML5 Geolocation API provides a simple way to get your location’s longitude and latitude. After that, you need to do something with the data to transform it into a more user friendly format, for example plot position on a map, use to get directions, find the distance to another location(s), or use with another application or API. I’m thinking about ways that I might be able to use it, perhaps on Horsham Pub Guide, but that’s a blog post for another day.

Does your site run on Perch CMS? Hire me to help. Perch CMS Development

Comments are OFF for this post.

© 2024 Clive Walker