search($zip) ) { header("HTTP/1.1 404 Not Found"); exit(); } // get zip info $zipcity = $classZip->search_city($zip); $vals = $classZip->fetch_vals($zip); $nearest = $classZip->fetch_nearest($zip, 10); $area = $classZip->get_zip_land_water($zip); $page_title = $zip . ' Zip Code Detailed Profile (Housing unit, household income, population)'; $meta_desc = $page_title; $meta_keywords = "ZIP Code, $zip, profile, census data, ZCTA, housing unit, household income, population"; include $_SERVER["DOCUMENT_ROOT"] . "/include/header.inc"; $zipinfo = $classZip->fetch($zip); if ( sizeof($zipinfo) > 0 ) { echo ''; echo ''; echo ''; echo '

' . $zip . ' Zip Code Detailed Profile


'; echo "Housing Unit    Household/Family Income    Population

\n"; include $_SERVER["DOCUMENT_ROOT"] . "/include/google_468_60.inc"; // show map /* echo '
'; */ echo '
'; echo '
'; // section 1, general information if ( $zipcity["cityid"] ) echo '\n"; if ( $zipcity["countyid"] ) echo '\n"; // 61: landarea, 62: water area // 2011.05.20 switch to tiger 2010 data (zip_info_tiger10) /* if ( $vals[61] || $vals[62] ) { echo '
Area: ' . number_format( ($vals[61]+$vals[62])/2589988, 2 ) . " square miles "; echo '(Land: ' . number_format( $vals[61]/2589988, 2 ) . ", Water: " . number_format( $vals[62]/2589988, 2 ) . ")
\n"; } */ if ( $area[0] || $area[1] ) { // convert sq. meters to sq. miles echo '
Area: ' . number_format( ($area[0]+$area[1])/2589988, 2 ) . " square miles, or " . number_format( ($area[0]+$area[1])/1000000, 2 ) . " square kilometres "; echo '(Land: ' . number_format( $area[0]/2589988, 2 ) . " sq.mi., Water: " . number_format( $area[1]/2589988, 2 ) . " sq.mi.)
\n"; } if ( sizeof($nearest) ) { echo '
Nearest Zip Codes: '; for ($i=0; $i' . $nearest[$i]["zip"] . " "; echo "
\n"; } echo '
'; // section 2, House unit echo ''; echo '

Housing Units in ' . $zip . ' Zip Code (Year 2000 census)

' . "\n"; echo '
Total Housing Unit: ' . $vals[12331] . "
\n"; echo '
    Urban: ' . $vals[12332] . ', Rural: ' . $vals[12335] . "
\n"; echo '
    Occupied: ' . $vals[12339] . ' (Owner: ' . $vals[12342] . ', Renter: ' . $vals[12343] . '), Vacant: ' . $vals[12340] . "
\n"; echo '
Median number of rooms: ' . $vals[12677] . "
\n"; echo '
Median value of owner-occupied housing units: $' . number_format($vals[13412]) . "
\n"; echo '
Occupied housing units Median household income in 1999: $' . number_format($vals[14561]) . "
\n"; echo '
'; echo '
Structure Built Year
  • 1999 to March 2000: ' . $vals[12782] . '
  • 1995 to 1998: ' . $vals[12783] . '
  • 1990 to 1994: ' . $vals[12784] . '
  • 1980 to 1989: ' . $vals[12785] . '
  • 1970 to 1979: ' . $vals[12786] . '
  • 1960 to 1969: ' . $vals[12787] . '
  • 1950 to 1959: ' . $vals[12788] . '
  • 1940 to 1949: ' . $vals[12789] . '
  • 1939 or earlier: ' . $vals[12790] . '
' . "\n"; echo '
Bedrooms
  • No bedroom: ' . $vals[12845] . '
  • 1 bedroom: ' . $vals[12846] . '
  • 2 bedrooms: ' . $vals[12847] . '
  • 3 bedrooms: ' . $vals[12848] . '
  • 4 bedrooms: ' . $vals[12849] . '
  • 5 or more bedrooms: ' . $vals[12850] . '
' . "\n"; echo '
'; echo '
Owner-occupied housing units value
  • Less than $10,000: ' . $vals[13388] . '
  • $10,000 to $14,999: ' . $vals[13389] . '
  • $15,000 to $19,999: ' . $vals[13390] . '
  • $20,000 to $24,999: ' . $vals[13391] . '
  • $25,000 to $29,999: ' . $vals[13392] . '
  • $30,000 to $34,999: ' . $vals[13393] . '
  • $35,000 to $39,999: ' . $vals[13394] . '
  • $40,000 to $49,999: ' . $vals[13395] . '
  • $50,000 to $59,999: ' . $vals[13396] . '
  • $60,000 to $69,999: ' . $vals[13397] . '
  • $70,000 to $79,999: ' . $vals[13398] . '
  • $80,000 to $89,999: ' . $vals[13399] . '
  • $90,000 to $99,999: ' . $vals[13400] . '
  • $100,000 to $124,999: ' . $vals[13401] . '
  • $125,000 to $149,999: ' . $vals[13402] . '
  • $150,000 to $174,999: ' . $vals[13403] . '
  • $175,000 to $199,999: ' . $vals[13404] . '
  • $200,000 to $249,999: ' . $vals[13405] . '
  • $250,000 to $299,999: ' . $vals[13406] . '
  • $300,000 to $399,999: ' . $vals[13407] . '
  • $400,000 to $499,999: ' . $vals[13408] . '
  • $500,000 to $749,999: ' . $vals[13409] . '
  • $750,000 to $999,999: ' . $vals[13410] . '
  • $1,000,000 or more: ' . $vals[13411] . '
' . "\n"; echo '
'; echo '
'; echo '
Age of householder (Owner-occupied)
  • 15-24: ' . $vals[14301] . '
  • 25-34: ' . $vals[14308] . '
  • 35-44: ' . $vals[14315] . '
  • 45-54: ' . $vals[14322] . '
  • 55-64: ' . $vals[14329] . '
  • 65-74: ' . $vals[14336] . '
  • 75+: ' . $vals[14343] . '
' . "\n"; echo '
'; echo '
Age of householder (Renter-occupied)
  • 15-24: ' . $vals[14351] . '
  • 25-34: ' . $vals[14358] . '
  • 35-44: ' . $vals[14365] . '
  • 45-54: ' . $vals[14372] . '
  • 55-64: ' . $vals[14379] . '
  • 65-74: ' . $vals[14386] . '
  • 75+: ' . $vals[14393] . '
' . "\n"; echo '
'; echo '
'; echo '
Household Income (Owner-occupied)
  • less than $5,000: ' . $vals[14537] . '
  • $5,000 to $9,999: ' . $vals[14538] . '
  • $10,000 to $14,999: ' . $vals[14539] . '
  • $15,000 to $19,999: ' . $vals[14540] . '
  • $20,000 to $24,999: ' . $vals[14541] . '
  • $25,000 to $34,999: ' . $vals[14542] . '
  • $35,000 to $49,999: ' . $vals[14543] . '
  • $50,000 to $74,999: ' . $vals[14544] . '
  • $75,000 to $99,999: ' . $vals[14545] . '
  • $100,000 to $149,999: ' . $vals[14546] . '
  • $150,000 or more: ' . $vals[14547] . '
' . "\n"; echo '
'; echo '
Household Income (Renter-occupied)
  • less than $5,000: ' . $vals[14549] . '
  • $5,000 to $9,999: ' . $vals[14550] . '
  • $10,000 to $14,999: ' . $vals[14551] . '
  • $15,000 to $19,999: ' . $vals[14552] . '
  • $20,000 to $24,999: ' . $vals[14553] . '
  • $25,000 to $34,999: ' . $vals[14554] . '
  • $35,000 to $49,999: ' . $vals[14555] . '
  • $50,000 to $74,999: ' . $vals[14556] . '
  • $75,000 to $99,999: ' . $vals[14557] . '
  • $100,000 to $149,999: ' . $vals[14558] . '
  • $150,000 or more: ' . $vals[14559] . '
' . "\n"; echo '
'; echo '
'; echo '
Vehicles available (Owner-occupied)
  • No vehicle: ' . $vals[12903] . '
  • 1 vehicle: ' . $vals[12904] . '
  • 2 vehicles: ' . $vals[12905] . '
  • 3 vehicles: ' . $vals[12906] . '
  • 4 vehicles: ' . $vals[12907] . '
  • 5 or more: ' . $vals[12908] . '
' . "\n"; echo '
'; echo '
Vehicles available (Renter-occupied)
  • No vehicle: ' . $vals[12910] . '
  • 1 vehicle: ' . $vals[12911] . '
  • 2 vehicles: ' . $vals[12912] . '
  • 3 vehicles: ' . $vals[12913] . '
  • 4 vehicles: ' . $vals[12914] . '
  • 5 or more: ' . $vals[12915] . '
' . "\n"; echo '
'; echo '
' . "\n"; echo '
'; // section 3, Household echo ''; echo '

Household/Family Income

' . "\n"; echo '
Total households in 1999: ' . $vals[1302] . "
\n"; echo '
    With earnings: ' . $vals[1460] . ', Without earnings: ' . $vals[1461] . "
\n"; echo '
Median household income: $' . number_format($vals[1319]) . "
\n"; echo '
Total Families in 1999: ' . $vals[1495] . "
\n"; echo '
Median family income: $' . number_format($vals[1512]) . "
\n"; echo '
'; echo '
Households by income
  • less than $10,000: ' . $vals[1303] . '
  • $10,000 to $14,999: ' . $vals[1304] . '
  • $15,000 to $19,999: ' . $vals[1305] . '
  • $20,000 to $24,999: ' . $vals[1306] . '
  • $25,000 to $29,999: ' . $vals[1307] . '
  • $30,000 to $34,999: ' . $vals[1308] . '
  • $35,000 to $39,999: ' . $vals[1309] . '
  • $40,000 to $44,999: ' . $vals[1310] . '
  • $45,000 to $49,999: ' . $vals[1311] . '
  • $50,000 to $59,999: ' . $vals[1312] . '
  • $60,000 to $74,999: ' . $vals[1313] . '
  • $75,000 to $99,999: ' . $vals[1314] . '
  • $100,000 to $124,999: ' . $vals[1315] . '
  • $125,000 to $149,999: ' . $vals[1316] . '
  • $150,000 to $199,999: ' . $vals[1317] . '
  • $200,000 or more: ' . $vals[1318] . '
' . "\n"; echo '
'; echo '
Families by income
  • less than $10,000: ' . $vals[1496] . '
  • $10,000 to $14,999: ' . $vals[1497] . '
  • $15,000 to $19,999: ' . $vals[1498] . '
  • $20,000 to $24,999: ' . $vals[1499] . '
  • $25,000 to $29,999: ' . $vals[1500] . '
  • $30,000 to $34,999: ' . $vals[1501] . '
  • $35,000 to $39,999: ' . $vals[1502] . '
  • $40,000 to $44,999: ' . $vals[1503] . '
  • $45,000 to $49,999: ' . $vals[1504] . '
  • $50,000 to $59,999: ' . $vals[1505] . '
  • $60,000 to $74,999: ' . $vals[1506] . '
  • $75,000 to $99,999: ' . $vals[1507] . '
  • $100,000 to $124,999: ' . $vals[1508] . '
  • $125,000 to $149,999: ' . $vals[1509] . '
  • $150,000 to $199,999: ' . $vals[1510] . '
  • $200,000 or more: ' . $vals[1511] . '
' . "\n"; echo '
'; echo '
' . "\n"; echo '
'; // section 4, Population echo ''; echo '

Populations in ' . $zip . ' Zip Code (Year 2000 census)

' . "\n"; echo '
Total Population: ' . $vals[87] . "
\n"; echo '
    Urban: ' . $vals[88] . ', Rural: ' . $vals[91] . "
\n"; echo '
    Male: ' . $vals[120] . ', Female: ' . $vals[159] . "
\n"; echo '
    Native: ' . $vals[498] . ', Foreign born: ' . $vals[509] . "
\n"; echo '
Population by Race
  • White alone: ' . $vals[95] . '
  • Black or African American alone: ' . $vals[96] . '
  • American Indian and Alaska Native alone: ' . $vals[97] . '
  • Asian alone: ' . $vals[98] . '
  • Native Hawaiian and Other Pacific Islander alone: ' . $vals[99] . '
  • Some other race alone: ' . $vals[100] . '
  • Two or more races: ' . $vals[101] . '
' . "\n"; echo '
'; echo '
Population by age, Male
  • Under 18: ' . ($vals[120]-$vals[5385]-$vals[5393]-$vals[5401]-$vals[5409]-$vals[5417]) . '
  • 18-24: ' . $vals[5385] . '
  • 25-34: ' . $vals[5393] . '
  • 35-44: ' . $vals[5401] . '
  • 45-64: ' . $vals[5409] . '
  • 65 and over: ' . $vals[5417] . '
' . "\n"; echo '
'; echo '
Population by age, Female
  • Under 18: ' . ($vals[159]-$vals[5426]-$vals[5434]-$vals[5442]-$vals[5450]-$vals[5458]) . '
  • 18-24: ' . $vals[5426] . '
  • 25-34: ' . $vals[5434] . '
  • 35-44: ' . $vals[5442] . '
  • 45-64: ' . $vals[5450] . '
  • 65 and over: ' . $vals[5458] . '
' . "\n"; echo '
'; echo '
' . "\n"; echo '

'; include $_SERVER["DOCUMENT_ROOT"] . "/include/google_468_60.inc"; echo '
'; } else { echo '
No information found for this zip code area
'; } include $_SERVER["DOCUMENT_ROOT"] . "/include/footer.inc"; // prepare google map variables // center point $center = census_zip::get_zip_lat_lng($zip); $cLat = $center[0]; $cLong = $center[1]; $z = 11; // large zip area (in sq. meters) if ( ($area[0]+$area[1]) >= 200000000 ) $z = 10; // small zip area if ( ($area[0]+$area[1]) < 30000000 ) $z = 12; ?>