Instant HTML5 Geolocation How-to [Instant]


This title is available as an eBook only
Instant HTML5 Geolocation How-to [Instant]
eBook: $12.99
Formats: PDF, PacktLib, ePub and Mobi formats
$11.04
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Determine the user’s location using a web browser and a few lines of JavaScript
  • Write location-aware applications for the mobile web
  • Understand how geolocation works on the web, and when to use it

Book Details

Language : English
eBook : 60 pages
Release Date : May 2013
ISBN : 1782165908
ISBN 13 : 9781782165903
Author(s) : Ben Werdmuller
Topics and Technologies : All Books, Instant, Web Development, Web Development, Web Development, Open Source, Web Development

Table of Contents

Preface
Instant HTML5 Geolocation How-to
  • Instant HTML5 Geolocation How-to
    • Understanding the Geolocation API (Simple)
    • Setting up the application (Simple)
    • Getting the user's location (Intermediate)
    • Displaying the user's location using the Google Maps API (Intermediate)
    • Displaying the user's location using a KML feed (Intermediate)
    • Tracking and updating the user's location (Intermediate)

Ben Werdmuller

Ben Werdmuller is a web developer, product manager, and entrepreneur. He co-founded Elgg, an open source social networking platform used by organizations such as NASA, the World Bank, and Oxfam. Currently, he serves as the CTO of latakoo.com, an enterprise platform for sending, storing, and sharing videos and large files. He writes at benwerd.com.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant HTML5 Geolocation How-to [Instant] +    Panda3D 1.7 Game Developer's Cookbook =
50% Off
the second eBook
Price for both: £18.45

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Understand how JavaScript Geolocation API works, and when to use it
  • Use the syntax of JavaScript Geolocation API
  • Retrieve the user’s location, altitude, speed, and direction
  • Store user’s location in MySQL
  • Display user’s location on Google Maps
  • Track user’s location when he moves around
  • Retrieve user’s location only when a GPS unit is switched on
  • Display user’s path on Google Maps

In Detail

We don’t just surf the Web from our desktops any more – we take it with us, everywhere we go. Modern devices contain sophisticated hardware and software to determine the user’s location. Apps such as Foursquare and Google Maps use this to create new kinds of functionality. Now, you can do this too with the HTML5 Geolocation API.

"Instant HTML5 Geolocation How-to" is a simple guide to adding location information to your web applications. The practical, easy-to-follow recipes are designed to help you learn the ins and outs of the API. You’ll learn how to use it, how it works, and how to save and display geographic information on the web.

Beginning with a solid grounding in how the Geolocation API works and when to use it, you will learn how to determine, store, display, and track the user’s location via a series of clear recipes.

You will learn the different ways location is determined on different devices, including desktops and laptops that don’t have GPS units. You’ll also learn how to selectively use these different behaviours, based on the speed, accuracy, and battery life requirements of your application. You’ll also get some hints about using MySQL databases to store sets of location data.

"Instant HTML5 Geolocation How-to" will teach you everything you need to know about retrieving the location information your application needs, across multiple devices and platforms.

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. The book will take a how-to approach, focusing on recipes that demonstrate geolocation in HTML5.

Who this book is for

This book is for web developers who want to incorporate geolocation technology into their applications. Previous knowledge about geolocation software or standards is not required. However, this book assumes a general understanding of web technologies, and both Javascript and jQuery in particular.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software