I didn’t find anything about geohashes in the forum and I thought it would be nice to start a conversation.
I was reading this article about solving geospatial problems in FaunaDB. The author relies on the
He also created an NPM package to filter out results by geohashes and calculate distances but it has some limitations. For example, you need to perform (and pay for) multiple read ops for finer filtering.
Geospatial data and querying is such a common need that it would be awesome if FaunaDB provided bult-in capabilities:
- Having a native GeoPoint type that could be converted to lat/long (eg: to put a pin on a map) or geohashes
- Having native functions to filter by distance, calculate distance between 2 points, box queries, etc.
Postgres already has a solution for these problems which makes working with geospatial data a trivial problem. See how Hasura leverages that (they’re huge in the GraphQL world).
MongoDB also has built-in geospatial types and queries.