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
6
votes
1 answer

MongoDB: Cluster documents by geographic location given area and max points?

I'm trying to develop a map-based visualization which includes a "heat map" of subpopulations, based on a MongoDB collection that contains documents like this: { "PlaceName" : "Boston", "Location" : { "type" : "Point", …
DanM
  • 7,037
  • 11
  • 51
  • 86
6
votes
1 answer

How to use geo_point with geohash in Elasticsearch with a Java class?

I have a Java class which looks as follows (GeoPoint is an Elasticsearch type): private Long id; private Integer genre; private String cityName; private GeoPoint geoPoint; private Date lastUpdate; private Double lat; private Double lon; The…
Dani
  • 4,001
  • 7
  • 36
  • 60
5
votes
1 answer

Sunspot Spatial Search Not Returning Results

I've just implemented the Sunspot gem into my application and I really like it except for the fact that when I do a location search it seems to be excluding some results. For example: I live in Columbus Ohio so if I search for "Columbus Ohio" my…
Kyle Decot
  • 20,715
  • 39
  • 142
  • 263
5
votes
1 answer

Flutter Firebase GeoQueries is giving back a lot of false data

I am building a food ordering app like Uber eats. So, I am using flutter to make an app, however now I ran into a problem of finding the nearest restaurants. I am currently storing location details using geoflutterfire package. Please see the…
5
votes
1 answer

geohash and max distance

Two geohash with first 6 characters matching, distance between two geohash is max 0.61km Two geohash with first 5 characters matching, distance between two geohash is max 2.5km Q : What is the max distance (approx) between any pair of bounding box…
Raxit Sheth
  • 2,491
  • 5
  • 17
  • 20
4
votes
1 answer

Why Bounding Box Search executes too long?

I'm using GeoModel to do Bounding Box Search. There are about 350 events in datastore but it executes >5 sec. The same results on my development environment and on google app engine. Why so long ? Do I need to add some Indexes ? results =…
4
votes
2 answers

How to efficiently convert a set of geohashes into a polygon?

I have been looking for a efficient way to convert a set of geohashes into polygons in Python, besides sometimes I obtain multipolygons instead of polygons, probably because some inner geohashes are missing. I am currently using python-geohash and…
Alberto Bonsanto
  • 17,556
  • 10
  • 64
  • 93
4
votes
1 answer

Geohash-Java Search Nearby LatLongs

I've been searching everywhere for a clear example of how to use the ch.hsr.geohash to search for nearby locations. I mean, I just need to implement the following situation: 1 - I have a Long latitude and Long longitude. 2 - Convert this…
John Santos
  • 485
  • 4
  • 18
4
votes
0 answers

How to find all geohashing units that cover a given area (lat/lng/radius)

Given that I know the lat/lng of a person's location, I can find the geohash of where they are. But I want to also find all the geohashes that within their "view". So if I know the lat/lng and radius, let's say from a google map view, I want to know…
Peter R
  • 3,185
  • 23
  • 43
3
votes
1 answer

Postgres >= and <= behavior's with special characters

I am trying to use geohash (the manual way as I can't use the geo methods postgres gis has because of the framework I am using). To do that I have a column in postgres (geoHash text default ''::text not null) to store that value. Now to the problem:…
fkrauthan
  • 498
  • 4
  • 8
3
votes
1 answer

GeoflutterFire for Firestore : with search centered on same set of data locations, Query result succeeds or fails depending of the radius

The radius parameter on GeoflutterFire library has a weird behaviour. Centering a search on some specific location with known existing results : setting approximately 1 km radius , there will be some results setting approximately 1.5 km radius,…
LearningPath
  • 612
  • 5
  • 17
3
votes
1 answer

Not able to query dynamoDb data using GeoDataManager in Node

I am trying to follow the very basic tutorial of Geo Library for Amazon DynamoDB given here https://www.npmjs.com/package/dynamodb-geo. Even after following the steps mentioned in link, my myGeoTableManager.queryRadius() call is not giving me any…
3
votes
1 answer

Firestore query geohash filtering

Firestore query question. I have a "geohash" field in my document which I want to filter by. I have seen Frank's @puf video about getting circular geohashes on yt. For now I don't care about a circular query yet. I have a geohash for a user. And…
arvidurs
  • 2,853
  • 4
  • 25
  • 36
3
votes
1 answer

Applying a geohash_decode function to a column in a dataframe

Well, I geohash_encoded the geographical coordinates to geohashes. My aim is to calculate the distance with some level of accuracy. I am trying to geohash_decode the geohashes back to geographical coordinates but I have failed to come up with a…
3
votes
2 answers

Geohash functions in SQL Server?

Are there any built in functions for dealing with geohashes in SQL Server? Either to go to/from polygon representations or to get the center point? I looked through the geography functions here but didn't see anything... If there aren't built in…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
1
2
3
12 13