I currently have the users longitude and latitude and will show rows in my database from other offers where the radius is 150 meter example.
How can i make this? Each offer has latitude and longitude also.
I am really confused if this can be possible.
Please some expert help me.
$o->prepare("offers",array(
"longtitude" => "10.2039494",
"latitude" => "55.203949",
"radius" => 150 //in meters
)
);
Prepare should make some kind of MySQL query that shows offers in the radius from the users latitude and longitude for 150 meter (or 2km, i should be available to change this?). Example (OFFERS IN DATABASE WITH LONG AND LATITUDE)
'55.395591', '10.385513'
'55.395554', '10.385208'
I am really stuck from here