I just have latitude and longitude of a store, now I want to find out all the stores near by in 1 hour drive or say at 10 KM distance.
I have table as,
Id, storeName, store_lat, store_lng
Say I have selected lat and lng of store 1 and I want to find out all the nearby stores. How to do that using php/mysql.
I have checked many post on SO but when I am running query, it's returning 0 results all the time.
Please help, thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…