CARVIEW |
Select Language
HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://webplatform.github.io/docs/apis/geolocation/
access-control-allow-origin: *
expires: Mon, 13 Oct 2025 18:47:53 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: 879D:3CF25F:2935A:2FC66:68ED4701
accept-ranges: bytes
age: 0
date: Mon, 13 Oct 2025 18:37:54 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210047-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760380674.836066,VS0,VE287
vary: Accept-Encoding
x-fastly-request-id: 640b6b6aa82739f4e36def2712682f6fb21fc444
content-length: 162
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Thu, 09 Jan 2020 08:57:10 GMT
access-control-allow-origin: *
etag: W/"5e16eae6-1835"
expires: Mon, 13 Oct 2025 18:47:54 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: D008:58AB8:28FED:2F87E:68ED4700
accept-ranges: bytes
age: 0
date: Mon, 13 Oct 2025 18:37:54 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210047-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760380674.135882,VS0,VE295
vary: Accept-Encoding
x-fastly-request-id: 326aa88e6cb4e1836a30463c13c74c6fdd9108b6
content-length: 2201
Geolocation API ยท WebPlatform Docs
This page is Ready to Use
Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.
Geolocation API
Summary
The geolocation API lets you share your location with trusted web sites. The latitude and longitude are available to JavaScript on the page, which in turn can send it back to the remote web server and do fancy location-aware things like finding local businesses or showing your location on a map.
- Coordinates
- The geographic coordinate reference system used by the attributes in this interface is the World Geodetic System (2d).
- Geolocation
- The Geolocation object is used by scripts to programmatically determine the location information associated with the hosting device. The location information is acquired by applying a user-agent specific algorithm, creating a Position object, and populating that object with appropriate data accordingly.
- PositionError
- The container for Position error information returned by this API.
- PositionOptions
- A native script object used by the getCurrentPosition() and watchPosition() methods.
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article