{
  "slug": "geolocation",
  "name": "Geolocation API",
  "category": "Capabilities",
  "summary": "Read the user's geographic position with explicit permission, one-shot or via a watch.",
  "name_zh": "Geolocation API（地理定位）",
  "summary_zh": "在明确授权下读取用户的地理位置，可一次性获取或持续监听。",
  "spec_url": "https://www.w3.org/TR/geolocation/",
  "mdn_url": "https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API",
  "confidence": "high",
  "verified_at": "2026-10-03",
  "support": [
    {
      "target": "Chrome (Desktop)",
      "os": "Desktop",
      "browser": "chrome",
      "engine": "blink",
      "status": "yes",
      "version_added": "5",
      "version_full": "5",
      "applicable": true,
      "notes": [],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-07-20",
      "confidence": "high"
    },
    {
      "target": "Chrome (Android)",
      "os": "Android",
      "browser": "chrome",
      "engine": "blink",
      "status": "yes",
      "version_added": "18",
      "version_full": "18",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Chrome.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Edge (Desktop)",
      "os": "Desktop",
      "browser": "edge",
      "engine": "blink",
      "status": "yes",
      "version_added": "12",
      "version_full": "12",
      "applicable": true,
      "notes": [],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-07-20",
      "confidence": "high"
    },
    {
      "target": "Firefox (Desktop)",
      "os": "Desktop",
      "browser": "firefox",
      "engine": "gecko",
      "status": "yes",
      "version_added": "3.5",
      "version_full": "3.5",
      "applicable": true,
      "notes": [
        {
          "text": "GPSD (https://gpsd.gitlab.io/gpsd/index.html) (GPS daemon) support added in Firefox 3.6. WiFi-based location is provided by Google (privacy (https://support.mozilla.org/en-US/kb/does-firefox-share-my-location-websites)) or a custom provider (MLS instructions (https://wiki.mozilla.org/CloudServices/Location/Software)).",
          "text_zh": "Firefox 3.6 加入对 GPSD（https://gpsd.gitlab.io/gpsd/index.html，GPS 守护进程）的支持。基于 WiFi 的定位由 Google 提供（隐私说明：https://support.mozilla.org/en-US/kb/does-firefox-share-my-location-websites），或使用自定义提供方（MLS 说明：https://wiki.mozilla.org/CloudServices/Location/Software）。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Firefox (Android)",
      "os": "Android",
      "browser": "firefox",
      "engine": "gecko",
      "status": "yes",
      "version_added": "4",
      "version_full": "4",
      "applicable": true,
      "notes": [],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-07-20",
      "confidence": "high"
    },
    {
      "target": "Safari (macOS)",
      "os": "macOS",
      "browser": "safari",
      "engine": "webkit",
      "status": "yes",
      "version_added": "5",
      "version_full": "5",
      "applicable": true,
      "notes": [],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-07-20",
      "confidence": "high"
    },
    {
      "target": "Safari (iOS)",
      "os": "iOS",
      "browser": "safari",
      "engine": "webkit",
      "status": "yes",
      "version_added": "3",
      "version_full": "3",
      "applicable": true,
      "notes": [
        {
          "text": "browser-compat-data records support as ≤3: present in the earliest Safari on iOS release it tracks.",
          "text_zh": "browser-compat-data 记录为 ≤3：在其跟踪的最早 iOS 版 Safari 中即已支持。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Samsung Internet",
      "os": "Android",
      "browser": "samsung",
      "engine": "blink",
      "status": "yes",
      "version_added": "1.0",
      "version_full": "1.0",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Chrome Android.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome Android 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "WebView (Android)",
      "os": "Android",
      "browser": "webview",
      "engine": "blink",
      "status": "yes",
      "version_added": "4.4",
      "version_full": "4.4",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Chrome Android.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome Android 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Geolocation.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    }
  ],
  "biz_compat": [],
  "generated_by": "OpenPWA compatibility explorer",
  "licence": "CC BY 4.0",
  "licence_url": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "OpenPWA — https://openpwa.net",
  "attribution_html": "<a href=\"https://openpwa.net\">OpenPWA</a>, <a href=\"https://creativecommons.org/licenses/by/4.0/\">CC BY 4.0</a>"
}