Jump to content

Zip Code Search


shane18

Recommended Posts

What is the big difference between

 

$radius = 3959 * acos(sin($lat1) * sin($lat2) + cos($lat1) * cos($lat2) * cos($long2 - $long1));

 

and

 

a2 + b2 = c2

 

I know it has something to do with the earth not being perfectly sphere...

 

What is the max amount of miles you can go up to with (a2 + b2 = c2) and it is still accurate.

Link to comment
https://forums.phpfreaks.com/topic/187514-zip-code-search/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.