Can anyone give me a hand with this please? I’ve been looking for something that I can work with, but not having all that much success.
So it’s pretty much just a form in PHP that you would type your address, and a distance you’re willing to travel, then the script would query the DB for the addresses there using google maps API, and turn out with a list of results closest to your address using the distance the end user defined.
[LIST]
[]MyLocations = The table with your locations
Fields:[LIST]
[]id
[]Name
[]Latitude
[]Longitude[/LIST]
[]$longitude = The longitude
[]$latitude = The latitude
[]$radius = The radius in kilometers
[*]$numberOfResults = The maximum number of results you want[/LIST]