Closed joey-happy closed 4 years ago
There is no way to represent non-multiples of five as base32, so it doe not exactly work like this. If you can, instead of a radius query you can use a precision query and just find the closest multiple of 5 that gets you to 500m in radius.
Hope this helps.
On Tue, May 12, 2020 at 5:24 AM joey notifications@github.com wrote:
Double lat = new Double("39.941800"); Double lon = new Double("116.352380"); double radius = 500; WGS84Point center = new WGS84Point(lat, lon); GeoHashCircleQuery query = new GeoHashCircleQuery(center, radius); List<GeoHash> searchHashes = query.getSearchHashes(); for (GeoHash searchHash : searchHashes) { System.out.println(searchHash.toBase32()); }
How can I resolve it??
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kungfoo/geohash-java/issues/43, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKAKA2LZGBCXTLEFSAJQDRRC6NXANCNFSM4M6OLZTA .
Thanks for your answer. Could you help me to give one demo for my requriement?
没看懂啥意思,遇到同样的问题了,怎么解决?
How can I resolve it??