" ".$resultsObj->results[0]->address->streetName;
$resCity = $resultsObj->results[0]->address->municipality;
$resState= $resultsObj->results[0]->address->countrySubdivision;
- $resZip = $resultsObj->results[0]->address->postalCode;
+ $resZip = substr($resultsObj->results[0]->address->postalCode, 0, 5);
} else if($tasks[$i]['taskName'] == "geocoder.census") {
$url = "https://geocoding.geo.census.gov/geocoder/locations/onelineaddress?address=".urlencode($addr." ".$city." ".$state." ".$zip).
"&format=json&benchmark=4";