Java 项目中根据用户的经纬度为其匹配最近的商家,有成熟案例或者 API 吗?不喜勿喷谢谢!
![]() |
1
lower 186 天前
有人跟我一样这样硬算的么?
mysql 5.7 支持: round(st_distance_sphere ( POINT ( x, y ), POINT ( #{x}, #{y} )) ) as distance |
![]() |
2
yggd 186 天前
|
3
anonydmer 186 天前
图简单直接使用个内置 geo distance 计算功能的数据库就好了,比如 mongo db
|
5
getoffworkontime 186 天前
上 gis 数据库, GeoHash
|
![]() |
6
cxh116 186 天前
新版 redis 默认也支持 geo 了
|
![]() |
7
lagoon 186 天前
嗯?国内还是国外啊。。。
|
8
whoosy 186 天前
redis geohash
|
![]() |
9
sadfQED2 186 天前 via Android
MySQL 的话存 GeoHash 值,然后加索引,前缀匹配查询
Redis 的话有 geohash 索引 Postgersql 的话有 postgis Es 的话也有地理位置索引 方案大概就这些吧 |
10
Jooooooooo 186 天前
搜 redis geohash, 很成熟的技术
|
![]() |
12
BigMountain 186 天前
用 Redis Geo 数据结构
功能很强大 |