📍 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 |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准