I'm trying to hack some Google Maps stuff together but I"m having some problems figuring out the trig to get what I need. Unfortunately, Google Maps doesn't offer a radius and drawCircle function. See my post from another forum below:
==
I'm trying to retrieve coords that fall on the perimeter of a circle that is 50 miles in radius from a central coordinate set. Using the great circle method I'm able to determine distance from the central point.
Anyone have some PHP code that would accomplish determining such an array? I would say that a point at every 1 degree of rotation would be enough points.
I could brute force it by creating an array of all possible coords in the area then using great circle to find those that fall on a 50 mile distance. But that is less than ideal for my sanity (and my processor power.) That is almost 5.5 million permutations!
Help appreciated.