Files
location2address/README.md

56 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 经纬度地址查询工具
一个基于 Rust + egui 开发的 Windows 桌面应用,用于将经纬度坐标转换为真实地址。
## 功能特性
- 支持多种坐标系转换GPS/高德/百度/Mapbar
- 调用高德地图 API 进行坐标转换和逆地理编码
- 一键复制查询结果
- 配置界面管理高德地图 API Key
- 中文界面支持
## 界面预览
![使用界面](使用界面.png)
## 技术栈
- **框架**: eframe / egui
- **语言**: Rust 2021
- **构建工具**: Cargo
- **目标平台**: x86_64-pc-windows-gnu
## 构建说明
确保已安装 MSYS2 + MinGW 环境和 Rust GNU 工具链:
```bash
# 验证工具链
rustc -vV # 应显示 x86_64-pc-windows-gnu
# 构建 release 版本
cargo build --release
# 产物位置
target/x86_64-pc-windows-gnu/release/location2address.exe
```
## 使用方法
1. 双击运行 `location2address.exe`
2. 点击右上角「配置」按钮,输入高德地图 Web API Key
3. 输入经度和纬度,选择坐标系
4. 点击「查询」获取地址信息
5. 点击「复制」按钮复制结果到剪贴板
## 配置文件
API Key 保存在程序同目录的 `config.json` 文件中。
## 高德地图 API
需要在 [高德开放平台](https://lbs.amap.com) 申请 Web 服务 API Key。
- 坐标转换 API: `/v3/assistant/coordinate/convert`
- 逆地理编码 API: `/v3/geocode/regeo`