Finding geohashes of certain length within radius from a point

后端 未结 2 1998
Happy的楠姐
Happy的楠姐 2020-12-24 14:50

I have points with a given latlong and a distance around them - e.g. { 40.6826048,-74.0288632 : 20 miles, 51.5007825,-0.1258957 : 100 miles}. If I pick a fixed geohash lengt

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 15:36

    Have a look at this -> ProximityHash.

    ProximityHash generates a set of geohashes that cover a circular area, given the center coordinates and the radius. It also has an additional option to use GeoRaptor that creates the best combination of geohashes across various levels to represent the circle, starting from the highest level and iterating till the optimal blend is brewed. Result accuracy remains the same as that of the starting geohash level, but data size reduces considerably, thereby improving speed and performance.

提交回复
热议问题