php - Figure out if I'm nearby something -
I have found my current location for a long time and I've got a list of locations and there is a long time there.
What I want to do is find out that if I am one of the adjacent places, then around 100 meters will be around. I do not want to display a map, just know That I am with it
What types of php libraries are available to compare the space / long time? Or can i solve it with math?
Thanks
Using the spherical coordinate on the earth can be most easily solved. Have you already dealt with them? There is a change in the normal rectangular coordination from the spherical coordinates, where there is a = latitude and B = longitude, and R is the radius of the Earth:
x = r cos [a] cos [b]
Then we dot The following properties of the product (notification [P, Q] will use:Q] = length [p] * length [q] * cos (angle between p and a) c)
(...)
less than Less, if the height is not important to you, Requires dependence on the height and / or distance (Is it even a word?), I think Google Maps would be more accurate.
Comments
Post a Comment