Content deleted Content added
Sohom Datta (talk | contribs) No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
m →Deployment in web browsers: HTTP to HTTPS for Blogspot |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1:
{{Short description|Javascript API to geolocate devices}}
{{Use dmy dates|date=June 2020}}
{{Infobox technology standard
Line 5 ⟶ 6:
| image =
| caption =
|
▲| year_started = {{Start date and age|2008}}<ref name="geolocation-spec-hist">{{Cite web|url=https://www.w3.org/standards/history/geolocation-API|title=Geolocation API Specification 2nd Edition Publication History - W3C|date=n.d.|access-date=2021-04-21}}</ref><ref name="geolocation-spec-20081222">{{cite web|url=https://www.w3.org/TR/2008/WD-geolocation-API-20081222/|title=Geolocation API Specification|first=Andrei (editor, Google Inc.)|last=Popescu|website=W3C|publisher=Geolocation Working Group|date=2008-12-22|access-date=2021-04-21}}</ref>
| version = W3C Recommendation
| version_date = {{Start date and age|df=yes|2022|
| preview =
| preview_date =
Line 27 ⟶ 26:
}}
The '''W3C Geolocation API''' is an effort by the [[World Wide Web Consortium]] (W3C) to standardize an interface to retrieve the [[geographical ___location information]] for a client-side device.<ref name="geolocation-spec">{{cite web
The result of W3C Geolocation API will usually give 4 ___location properties, including [[latitude]] and [[longitude]] (coordinates), altitude (height), and accuracy [of the position gathered], which all depend on the ___location sources.{{Citation needed|date=February 2023}}
Line 34 ⟶ 33:
Web pages can use the Geolocation API directly if the web browser implements it. Historically, some browsers could gain support via the [[Google Gears]] [[plug-in (computing)|plugin]], but this was discontinued in 2010 and the server-side API it depended on stopped responding in 2012.<ref>{{cite web |url=https://code.google.com/apis/gears/api_geolocation.html |archive-url=https://web.archive.org/web/20120214212239/https://code.google.com/apis/gears/api_geolocation.html|title=Geolocation API: Gears API: Google Code |website=Google Code |date=9 July 2009 |archive-date=2012-02-14 |access-date=2021-04-21 }}</ref><ref name="code-google-gear-geo-api" />
The Geolocation API is ideally suited to web applications for mobile devices such as [[smartphone]]s. On desktop computers, the W3C Geolocation API works in [[Firefox]] since version 3.5, [[Google Chrome]],<ref>{{cite web |url=
Google Gears provided geolocation support for older and non-compliant browsers, including Internet Explorer 7.0+ as a Gears plugin, and Google Chrome which implemented Gears natively. It also supported geolocation on mobile devices as a plugin for the Android browser (pre version 2.0) and [[Opera Mobile]] for [[Windows Mobile]]. However, the Google Gears Geolocation API is incompatible with the W3C Geolocation API and is no longer supported.
|