However, it doesnt return the distance that the zip is from the input zip code.
It uses this calculation/query:
$query="SELECT zipcode FROM pmd_zipdata WHERE (POW((69.1*(lon-\"$lon\")*cos($lat/57.3)),\"2\")+POW((69.1*(lat-\"$lat\")),\"2\"))<($radius*$radius) "
Bookmarks