ZIP Code Lookup

ZIP
0) { $ZIP = new Zipcode(); $current = $ZIP->query($zip); if ($current) { printf("%s, %s
", $current->name, $current->state); printf("Lat/Lon: %.2f, %.2f", $current->lat, $current->lon); } else printf("Query failed. Check input and try again."); } ?>

Radius Search

ZIP
0) { ?> ZIP Codes within %d %s of %s:\r\n\n", $distance, $units, $zipsearch); printf("

ZIPDistance"); $zipcode = new Zipcode(); $result = $zipcode ->local($zipsearch, $distance, $units); foreach ($result as $key => $value) { printf("
%s%.1f", $key, $value); } printf("
"); ?>