Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability for users to search by distance #537

Open
2 tasks
pH-7 opened this issue May 6, 2019 · 13 comments
Open
2 tasks

Add ability for users to search by distance #537

pH-7 opened this issue May 6, 2019 · 13 comments

Comments

@pH-7
Copy link
Member

pH-7 commented May 6, 2019

On user search form https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/master/_protected/app/system/core/forms/SearchUserCoreForm.php

  • Allows users to search within a distance radius ('kilometers', or 'miles' for the remaining countries using imperial units).
  • Add geocoding database, or with an external geo API (which contains longitude/latitude, radius) in order to detect user's coordinates (user's location).
@pH-7 pH-7 changed the title Allow ability for users to search by distance Add ability for users to search by distance May 6, 2019
@pH-7 pH-7 changed the title Add ability for users to search by distance Add ability for users to search by Distance May 6, 2019
@pH-7 pH-7 changed the title Add ability for users to search by Distance Add ability for users to search by distance May 6, 2019
@pH-7 pH-7 added this to the v16.0 milestone Jul 6, 2019
@rondlite
Copy link

rondlite commented Jul 31, 2019

use geohash or other like https://github.com/ashwin711/proximityhash
Redis is quite good at handling hash locations.
Lat long will require a lot more logic than geohash and does not take Hilbert curve in consideration
(beware.. flat-earthers will not believe in Hilbert algorithm)

@rondlite
Copy link

Added the search by distance on my site, without adding yet another GeoAPI
Pretty easy when adding location of user on register and store them in Redis too.

@Undefined-Variables
Copy link
Member

Yeah I have written a how far feature that tells you how far apart based on postcodes and also gives time by car/train/bus and the cost of each. This is all doable using googles distance matrix :)

@rondlite
Copy link

@Undefined-Variables with redis you don't need google api .. will save you some money

@polynamaude

This comment was marked as off-topic.

@rondlite
Copy link

rondlite commented Aug 14, 2020

Don't get confused with Rob Da Bank,

he is Lazyboy (serious looooooool) (good stuff)

@Undefined-Variables
Copy link
Member

Yeah I was given £500 google credit and its using about £6 a month so not costing me a penny...

@rondlite are you calling me lazy? If that is the light you see me in you have gotten me completely wrong!!!!

@polynamaude

This comment was marked as off-topic.

@Undefined-Variables
Copy link
Member

LOL I'm not pissed off I didn't understand is all. You don't seriously think I get pissed of that easy do you? In britain we are taught to ask the question if you are not sure... We was talking about Google and the pricing, then he said "Hes just lazy" I just assumed he was still on the same subject...

TBH I like @rondlite and if anything was concerned I look lazy haha! How are you @polynamaude any how?

@Undefined-Variables
Copy link
Member

@polynamaude you have a magical way with words. Word smith lol...

@rondlite thanks for tip :) sorry I misunderstood the off topic DJ references...

@rondlite
Copy link

@Undefined-Variables the mention of Rob da Bank made me quote it is lazyboy.. not calling anyone lazy.

Birth name | Robert John Gorham
-- | --
Also known as: Rob da Bank
24 June 1973 (age 47)Portsmouth, Hampshire, England, UK
Associated acts: Lazyboy

I am calling Rob da Bank Lazyboy, since he is. It is his act.
He is also presenter of the Blue Room on BBC Radio 1.

@polynamaude

This comment was marked as off-topic.

@Undefined-Variables
Copy link
Member

@polynamaude also alive... Sorry been so busy lately!

@pH-7 pH-7 modified the milestones: v17.1, v17.2 Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants