Using Haversine formula gives the distance between two points as a bird flying over the building, which i know how to use. But i want to calculate a road distance between two points in a mysql query. How can i do that?
This is a location table:
place|latitude|longitude
a |78.2252 |37.3365
b |78.235 |25.3364
Now, i have to find near places from my database with respect to current latitude and longitude from GPS.