Hello,
I don't understand all the things in Finding Locations with MySQL Here.
lat ant lng are latitude and longitude of a point in a row in a database.
What are 37 and -122. Are rounded latitude and longitude of a point defined, for example where I am?
Thank you
I don't understand all the things in Finding Locations with MySQL Here.
lat ant lng are latitude and longitude of a point in a row in a database.
What are 37 and -122. Are rounded latitude and longitude of a point defined, for example where I am?
B4X:
SELECT id, ( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(-122) ) + sin( radians(37) ) * sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance < 25 ORDER BY distance LIMIT 0 , 20;