Questions tagged [geohashing]

Geohash is a latitude/longitude encoding system using Base-32 characters.

Geohash is a latitude/longitude geocode system invented by Gustavo Niemeyer when writing the web service at geohash.org, and put into the public domain. It is a hierarchical spatial data structure which subdivides space, then interleaves the latitude and longitude information in a bitwise fashion.

Geohashes offer properties like arbitrary precision and the possibility of gradually removing characters from the end of the code to reduce its size (and gradually lose precision).

Nearby places will often (but not always) present similar prefixes. The longer a shared prefix is, the closer the two places are.

See https://en.wikipedia.org/wiki/Geohash

188 questions
1
vote
1 answer

Get Distance from geohash field in solr 3.6

Is it possible to get distance returned from a geodist() filter, on a geohash field that has multiple values? The geosort and the geodist filter are working fine, but I'm trying to get the distance between the query point and a location that was…
Omar
  • 8,374
  • 8
  • 39
  • 50
0
votes
1 answer

Solr - Using facets to sum documents based on variable precision geohashes

Is there a way to get facet counts based on a substring of a facet field, akin to an EdgeNGram? I'm using solr to store geohash strings at a high precision, and want to count the number of documents at a certain geohash precision. Facets are used…
Sensai
  • 3
  • 1
0
votes
2 answers

Location based GeoFire queries . How to load the documents in batches

I have a ios location based app. A user needs to be able to see nearby users within a certain radius. is there a way to read the nearby user documents in batches so that i don't unnecessarily load too many documents that the user won't scroll…
caa5042
  • 166
  • 3
  • 16
0
votes
0 answers

Visualize Geohash after Drawing it on same map (Streamlit Folium)

need some helps here, I’m still a rookie in this streamlit stuffs so feel free to give some feedback upon my codes. Here is the problems, I create tools using streamlit and Draw plugin, whenever user draw polygon on certain areas, it will create…
0
votes
1 answer

Geospatial rolling average from geohashes on BigQuery

Geohashes form a grid, much like a matrix. If I have a table with a geohash7 and a value, how could I calculate say the average of all the adjacentcells on BigQuery? Sample source…
TrewTzu
  • 1,110
  • 2
  • 11
  • 27
0
votes
1 answer

Tinder-like search based on distance in Flutter - Most efficient way?

Imagine an app very similar to Tinder, match users with similar interests, but only in a certain radius. I guess similar question to this, but specifically for Flutter: How to implement a tinder-like search based on distance in Android? The most…
Big_Chair
  • 2,781
  • 3
  • 31
  • 58
0
votes
1 answer

Realtime complex Geoquery within Firebase for 100K users

The use case: 50K to 100K trucks updating both location and internal engine info in real time. From a console, it's crucial to update the interface every time a truck within some range changes location OR changes internal engine info. So if…
0
votes
1 answer

Why does query firestore not return the expected result using order 2 times

While composing a composite query for firebase, I ran into a problem. I use geoHash filtering as specified in the documentation https://firebase.google.com/docs/firestore/solutions/geoqueries?hl=en&%3Bauthuser=0&authuser=0 And besides that, I want…
0
votes
0 answers

Total memory needed to store all Geohash strings

Geohash has precision levels ranging from 1 and 12 (e.g., 2p5qnb2). The longer a precision level, the smaller the size the Geohash covers. What will be the total memory needed to store all Geohash strings? For each Geohash character, it could be…
240h32g
  • 1
  • 2
0
votes
1 answer

How to Decode GEOHASH Column using PySpark

I'm trying to decode the GEOHASH to Latitude and Longitude using the pygeohash library. Below is my code import pygeohash as pgh from pyspark.sql.types import StringType udf1 = udf(lambda x: pgh.decode(x)) add_latlong = add.withColumn('location',…
Sarah Rahman
  • 203
  • 1
  • 2
  • 12
0
votes
1 answer

Firestore GeoQuering in node.js returns null

I'm trying to create a geoquery in node.js from Firestore, but when using the example from the Firebase library (https://firebase.google.com/docs/firestore/solutions/geoqueries#query_geohashes), my code returns 'Cannot read properties of null…
0
votes
1 answer

Listening for realtime updates of multiple queries with Firestore and geohashing

I'm using the Cloud Firestore database to perform some geohashing queries (with the help of the Geofire library). It looks like multiple queries are needed to do geohashing, four queries to be exact: import { geohashQueryBounds } from…
Cesare
  • 9,139
  • 16
  • 78
  • 130
0
votes
0 answers

Firestore Geoquery with coroutines

I'm trying to get a geohash query with coroutines async override suspend fun getUsersWithGeoHash( latitude: Double, longitude: Double, radiusInMeter: Int ): List { val center = GeoLocation(latitude, longitude) val…
0
votes
1 answer

Does firestore 'orderBy' order geohashes by distance?

The more I read on this topic the more I am confused. I need small clarification. If I convert my coordinates to geohash like: c2b2aaa using some library that can do that. And in firestore collection documents I have field . doc: {... geohash:…
1110
  • 7,829
  • 55
  • 176
  • 334
0
votes
1 answer

Firestore - After orderby geoHash not able to sort documents based on another field

Example: Get top rated restaurants around me based on rating count (Assume 10k restaurants around the area, so have to use limit) My Query in Java: ref.orderBy("geoHash") .orderBy("count", Query.Direction.DESCENDING) .startAt(startHash) …