eklem / search-concepts

Design mockups and simple prototypes for possible search solutions
MIT License
2 stars 1 forks source link

position search #10

Open eklem opened 4 years ago

eklem commented 4 years ago

Search based on your position and position on search results

Using geohash: http://geohash.org/site/tips.html

eklem commented 4 years ago

Test this library? https://github.com/chrisveness/latlon-geohash

eklem commented 3 years ago

The geohash approach doesn't work since the hashes isn't sortable on distance from a point. But maybe Euclidean Distance could be worth a look? Then it would only function as a sorting algorithm since the calculation is done in real time.

Use case - exploratory type search:

https://github.com/zeke/euclidean-distance https://en.wikipedia.org/wiki/Euclidean_distance

eklem commented 3 years ago

Test with different sets of longtitude and latitude.

eklem commented 3 years ago

Creating a geo-search-helper library to make it easy to set up geographical search and exploration based on documents with only longtitude and latitude data.

eklem commented 3 years ago

And actually, geohash can be used in combination with Euclidean distance. You could search for stuff close to a point with the matcher.