简体   繁体   English

Aloglia:用于地理搜索的索引圈位置区域

[英]Aloglia: Index circle location zone for geo-search

Is it possible to index a circle zone and make it work with Algolia geo-search. 是否可以索引圆形区域并使其与Algolia地理搜索一起使用。

The only solution I can come with is to index multiples points of the circle like that : 我可以提供的唯一解决方案是将圆的多个点索引为:

"_geoloc": [
  { "lat": 47.279430, "lng": 5.106450 },
  { "lat": 47.293228, "lng": 5.004570 },
  { "lat": 47.316669, "lng": 5.016670 }
]

But I think it wont be very accurate unless I have a lot of points. 但我认为除非我有很多观点,否则它不会非常准确。 Any thoughts ? 有什么想法吗 ?

It's not possible to index a circle or a polygon as a location. 将圆或多边形索引为位置是不可能的。

I'm not an expert of geolocalization in general but I have never came across this. 我不是一般的地理定位专家,但我从未遇到过这个问题。 I think a place is always represented as a single couple of coordinates (lat, lng). 我认为一个地方总是表示为一对坐标(lat,lng)。

I think if you want to index large places, you'll have to increase the radius at search. 我想如果你想索引大的地方,你必须增加搜索的半径。

Your idea of indexing multiple points makes perfect sense tho. 你对索引多个点的想法很有意义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM