Open pH-7 opened 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)
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.
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 :)
@Undefined-Variables with redis you don't need google api .. will save you some money
@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)
Don't get confused with Rob Da Bank,
he is Lazyboy (serious looooooool) (good stuff)
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!!!!
@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...
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?
@polynamaude you have a magical way with words. Word smith lol...
@rondlite thanks for tip :) sorry I misunderstood the off topic DJ references...
@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.
@rondlite Hi Ron, glad to see ya alive ! I know that this virus ain't gonna kill you...
@polynamaude also alive... Sorry been so busy lately!
On user search form https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/master/_protected/app/system/core/forms/SearchUserCoreForm.php