Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以在下一个版本里面加入一个地理空间索引的示例api吗 #80

Open
CHAT-00001 opened this issue Mar 4, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@CHAT-00001
Copy link

现在很多APP都有这个需求,可以加入一个这样的示例吗

根据地理位置获取附近圆形范围内的对象
http://127.0.0.1/video/nearby?lat=23.122444&lng=120.122644&distance_min=100&distance_max=10000

@photino
Copy link
Collaborator

photino commented Mar 5, 2024

你是使用PostgreSQL数据库吗 数据表里是有 lat lng这两个字段是吧

@CHAT-00001
Copy link
Author

是啊,现在用MySQL,准备转PG去了。作者你以前是写java的吗?controller能不能写成actions呀?

@photino
Copy link
Collaborator

photino commented Mar 9, 2024

地理信息支持还没怎么考虑 MySQL其实也是支持的 你说的controller写成actions是指啥 模块名称吗 都可以随意起名的 我们没有严格的限制,只要Rust能编译通过就行

@photino photino added the enhancement New feature or request label Mar 18, 2024
@CHAT-00001 CHAT-00001 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
@photino photino reopened this Mar 29, 2024
@photino
Copy link
Collaborator

photino commented Mar 29, 2024

It is planned to be added. We need more design choices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants