Skip to Content
HTML5 Geolocation
book

HTML5 Geolocation

by Anthony T. Holdener
May 2011
Intermediate to advanced
112 pages
2h 58m
English
O'Reilly Media, Inc.
Content preview from HTML5 Geolocation

Chapter 5. Saving Geographic Information

Many applications do more than display a geolocation on a map once it has been acquired. In many cases, the location is saved for later use—possibly displaying a history of where a user has been, or showing where many users are at any given time. In these cases, the browser application will need to collect the geolocation of the device and then send that information to a server for further processing. Most of this backend processing is beyond the scope of this book, but most likely a web server will be used with a server-side language like PHP, Python, C# or VB.NET, Java, etc. The language used does not really matter, but how the information is saved does matter.

Note

For more information on server-side scripting languages, check out some of these titles to get you started: PHP and MySQL Development, 4th Edition by Luke Welling and Laura Thomson (Addison-Wesley Professional), Programming Python, Fourth Edition by Mark Lutz (O’Reilly Media), Head First Java, Second Edition by Kathy Sierra and Bert Bates (O’Reilly Media), and Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars (Wrox).

Since I want to concentrate more on what to do with the geographic information once it has been collected by the browser than how to manipulate it on the server, I will talk specifications more than implementation in the sections to come. There are many ways that geolocation information can be saved for later use: text files, CSV files, XML files, JSON files, KML ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

HTML5: The Missing Manual, 2nd Edition

HTML5: The Missing Manual, 2nd Edition

Matthew MacDonald
Leaflet.js Essentials

Leaflet.js Essentials

Paul Crickard III

Publisher Resources

ISBN: 9781449308049Errata Page