Skip to content

add geo analysis #44

Merged
greyli merged 1 commit intocodekitchen-community:mainfrom
Legimity:add_geo_analysis
Oct 28, 2025
Merged

add geo analysis #44
greyli merged 1 commit intocodekitchen-community:mainfrom
Legimity:add_geo_analysis

Conversation

@Legimity
Copy link
Copy Markdown
Contributor

✨ 新增功能:上传图片时自动解析 EXIF 中的地理位置信息
本次 PR 引入了对图片 EXIF 元数据中 GPS 坐标的自动解析能力。当用户上传包含地理位置信息的照片(如手机原图)时,系统将自动提取经纬度,并通过 Geoapify 反向地理编码服务将其转换为可读的城市/街道地址,用于自动填充表单中的位置字段。

🔧 使用前提:

  1. Geoapify 控制台 注册账户;
  2. 创建一个项目并获取 API Key;
  3. 在项目根目录下创建 .env 文件,填入你的密钥:
    GEOAPIFY_API_KEY=your_actual_api_key_here
    💡 Geoapify 提供 每日 3000 次免费调用额度,适合开发与轻量生产环境。

测试:上传自己手机(iphone)拍摄的照片,解析位置成功

@greyli greyli merged commit 1e87f17 into codekitchen-community:main Oct 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants