HTML5.Geolocation.2011

pdf > download > ebook > pobieranie > do ÂściÂągnięcia

HTML5.Geolocation.2011, Informatyka, HTML & CSS

[ Pobierz całość w formacie PDF ]
HTML5 Geolocation
by Anthony T. Holdener III
Copyright © 2011 Anthony T. Holdener, III. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (
). For more information, contact our
corporate/institutional sales department: (800) 998-9938 or
corporate@oreilly.com
.
Editor:
Simon St. Laurent
Proofreader:
O’Reilly Production Services
Cover Designer:
Karen Montgomery
Interior Designer:
David Futato
Illustrator:
Robert Romano
Printing History:
May 2011:
First Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc.
HTML5 Geolocation
, the image of a cape petrel, and related trade dress are trade-
marks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-30472-0
[LSI]
1305652988
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. Finding Our Way . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Geolocation in the Past
1
Location B.C.E.
1
Technology with Exploration
2
Location in the 1900s
4
Public Availability of GPS
5
Geolocation Now
6
The Basics
6
Ways to Locate
7
Global Positioning System (GPS)
7
IP Address
9
GSM/CDMA Cell IDs
10
WiFi and Bluetooth MAC Address
11
Location and Location-Based Services (LBS)
11
Geolocation Today
12
Mobile Applications
13
Augmented Reality Applications
16
2. Geolocation: Latitude, Longitude, and More . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
What Are Coordinate Systems?
19
Latitude and Longitude
20
Geodetic Systems and Datums
23
The Earth’s Shape
23
Common Datum
24
Map Projections
25
Altitude, Course, and Speed
26
Geodetic Height
27
Course
28
Speed
28
vii
Accuracy
29
3. Geolocation API in Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
W3C Geolocation API
31
Current API Support
32
Other Browser Solutions
32
The W3C Geolocation API Does More
35
The Geolocation Object
35
Get the User’s Position
36
PositionOptions
37
Cached Positions
38
Update the User’s Position
38
No Need for Polling
39
Clearing a Watch Operation
40
Handling a Successful Request
40
Position Object
40
Coordinates Object
41
Handling an Error from the Request
43
PositionError Object
43
Privacy
45
4. Geolocation and Mapping APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
A Google Maps Example
47
The Google Maps API, Briefly
48
Adding Geolocation to Google Maps
52
An ArcGIS JavaScript API Example
58
The ArcGIS JavaScript API, Briefly
59
Adding Geolocation to Esri Maps
62
5. Saving Geographic Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
KML
70
Shapefiles
73
Python Shapefile Library
74
Databases
75
SDE
76
PostGIS
76
MySQL
77
6. What You Can Do with Geolocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Geomarketing
80
Specials and Offers
80
Crowdsourcing
81
Specialization
82
viii | Table of Contents
Geosocial
82
Continued Growth
82
Automatic Check-in
83
Two Way Street of Data
84
Geotagging
85
Digital Media and Geotagging
85
Privacy and Geotagging
85
Geo-applications
86
Safety/Tracking
86
Taxi Services
86
Search
87
M-Commerce
87
Other Applications
87
HTML5 and Geolocation
87
Web Applications Supplementing LBS
88
Web-Based LBS
94
Table of Contents | ix
[ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • chiara76.opx.pl
  •