apache / sedona

A cluster computing framework for processing large-scale geospatial data
https://sedona.apache.org/
Apache License 2.0
1.95k stars 693 forks source link

Geohash neighbours geohashes util #908

Open ghirardinicola opened 1 year ago

ghirardinicola commented 1 year ago

I'm proposing a new feature to get the adjacent gh of a given one. It's already implemented in many libs, starting from getAdjacent

jiayuasu commented 1 year ago

@ghirardinicola This is a great idea. Do you want to contribute this to Sedona?

ghirardinicola commented 1 year ago

Yes! Can you give me some direction on where to start? Do you think using another lib is fine or rewriting the algorithm on top of what is there (don't know which geohash lib is used) it's a better solution?

jiayuasu commented 1 year ago

@ghirardinicola

Sedona implements the GeoHash from scratch. But you can take the Neighbor function from ElasticSearch and integrates it with the existing GeoHash function in Sedona since they both are in Apache License.