📍 Location QR

📐 工作原理與說明
載荷串:geo:<緯度>,<經度> —— 緯度/經度須為合法數字(拒絕非法字尾,如 1oops),並校驗範圍 緯度 -90~90、經度 -180~180;填寫標註時追加 ?q=<encodeURIComponent(標註)>
把地理位置編碼為可掃碼開啟的二維碼。
  • URI:內容為 geo:纬度,经度,可帶 ?q=名称 或 z=缩放级别。
  • 行為:掃碼後系統地圖應用定位至該座標。
  • 精度:小數位數決定定位精度,通常 5–6 位小數已足夠。
  • 座標系:需與目標地圖一致(國內地圖常用 GCJ-02,國際常用 WGS-84),否則會偏移。
This tool does not turn an address or place name into coordinates: the QR payload uses only the latitude/longitude above. The place label is attached as ?q= text, and how it is displayed depends on the map app on the scanning device.

📚 深度解析:位置二維碼

💡 常見使用場景

  • 把經緯度生成 geo: 二維碼。
  • 在門店海報或活動頁放「掃碼導航」:把經緯度生成二維碼,使用者掃碼後直接用地圖應用開啟目的地。
生成
`geo:39.9,116.4` → QR,掃碼開啟地圖。

❓ 常見問題(FAQ)

格式是什麼?
geo:緯度,經度?z=縮放。
掃碼後開啟的地圖和預期不同?
geo: URI 由系統決定交給哪個應用處理,不同手機預裝的地圖不同,展示效果自然不同。另外各家地圖使用的座標系不同(國內常用 GCJ-02,國際通用 WGS-84),直接填入 WGS-84 座標在國內地圖上可能偏移數百米,釋出前務必實掃驗證。

Formula & Standard References

Item Formula / Note Source / Standard
Payload geo:lat,lon form with optional query parameters RFC 5870 (geo URI)
Precision more decimals mean finer precision; 6 digits is metre-level WGS 84 / RFC 5870
Error correction short payload allows level H error correction ISO/IEC 18004
⚠️ 使用說明與注意事項