pH7Software / pH7-Social-Dating-CMS

😻 pH7Builder (formerly pH7CMS) is a Professional & Open Source Social Dating CMS written in PHP 8 🚀 This Social Dating Script aims to be low resource-intensive, powerful and secure. pH7Builder includes over 40 modules. It is the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for enterprise level Da
https://pH7Builder.com
MIT License
957 stars 574 forks source link

Add ability for users to search by distance #537

Open pH-7 opened 5 years ago

pH-7 commented 5 years ago

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

rondlite commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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

polynamaude commented 4 years ago

@rondlite It's rightt, you only have to save lon / lat and make the calculation... Great hint "Ron-D-Lite"... (Don't get confused with Rob Da Bank, that's another famous star of the night)

rondlite commented 4 years ago

Don't get confused with Rob Da Bank,

he is Lazyboy (serious looooooool) (good stuff)

Undefined-Variables commented 4 years ago

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 commented 4 years ago

@Undefined-Variables I think you shall put your head in the ice or whatever is suitable to cool down your mind a bit.... Ron-D-Lite is Ron's nick name as both as DJ and light technician in the Netherlands club scene. Rob-da-Bank is another DJ so is Lay-Z-Boy...

Come down a bit... To be so much easily pissed off ain't much british...

Undefined-Variables commented 4 years ago

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 commented 4 years ago

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

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

rondlite commented 3 years ago

@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 commented 3 years ago

@rondlite Hi Ron, glad to see ya alive ! I know that this virus ain't gonna kill you...

Undefined-Variables commented 3 years ago

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