ZIP Codes issued by the US Postal Service.

Entity["ZIPCode",name] or

represents an entity of type "ZIPCode".

[prop]

gives the value of a specified property.

[{propi,}]

gives the value of a list of properties.

[prop,{qualivali,}]

gives the value of a specified property modified by qualifier rules quali->vali.

[Dated[prop,date]]

gives the value of a property associated with a particular date specification.

EntityClass["ZIPCode",{propispeci,}]

represents a class of entities with values of propi defined by speci.

Sample Entities

Sample Entity Classes

Properties

  • AcceptableAddressacceptable address
    ActualAddressactual address
    AggregateHouseholdIncomeaggregate household income
    AnnualPayrollannual payroll
    Areaarea
    AreaCodesarea code
    AverageHouseValueaverage house value
    Businessesbusiness establishments
    BusinessMailboxesbusiness delivery receptacles
    CBSACodeCBSA code
    Citiescity
    CitySalesTaxRatecity sales tax
    ClassificationCodeclassification
    CongressionalDistrictcongressional district
    Coordinatescoordinates
    Countiescounties
    CountySalesTaxRatecounty sales tax
    CSACodeCSA code
    Divisioncensus division
    Employmenttotal employment
    EmploymentFlagtotal employment range
    FIPSCodeFIPS code
    GenderPopulationsgender populations
    GiniIndexGini index
    HasPolygonhas polygon?
    HousingUnitshouseholds
    LandArealand area
    Latitudelatitude
    Longitudelongitude
    MedianAgemedian age
    MedianHouseholdIncomemedian household income
    Namename
    PerCapitaIncomeper capita income
    PersonsPerHouseholdpeople per household
    Polygonpolygon
    Populationpopulation
    PopulationByEducationalAttainmentpopulation by educational attainment
    PopulationByGeographicalMobilitypopulation by migration in previous 12 months
    PopulationByLanguageSpokenAtHomepopulation by language spoken at home
    PopulationByMaritalStatuspopulation by marital status
    PopulationByPovertyStatuspopulation by poverty status
    PopulationBySchoolEnrollmentpopulation by school enrollment
    PopulationDensitypopulation density
    Positionposition
    PrimaryCityAliasCodeprimary type
    PrimaryCityTypeprimary postal station
    PrimaryPlaceNamelocation
    Regioncensus region
    ResidentialMailboxesresidential delivery receptacles
    StateAbbreviationstate abbreviation
    StateSalesTaxRatestate sales tax
    TotalMailboxestotal mail receptacles
    TotalSalesTaxRatetotal sales tax
    UnacceptableAddressunacceptable address
    UnweightedSampleHousingUnitsunweighted sample housing units
    UnweightedSamplePopulationunweighted sample population
    USStatesUS state
    WaterAreawater area

Details

  • "ZIPCode" entities include all five-digit ZIP Codes currently in use in the US and its territories.
  • "ZIPCode" entity classes are based on their use as standard, PO box or other types of ZIP Codes.
  • While there is a well-known, finite number of available ZIP Codes (0000199999), entities do not exist for non-active ZIP Codes. Currently active ZIP Codes may disappear if they are discontinued by the USPS.
  • Some properties are available for the "ZIPCode" entity type as a whole and can be given using the form EntityValue["ZIPCode",property]. Such properties include:
  • "Properties"the list of available properties
    "PropertyCanonicalNames"the standard names of available properties
    "SampleEntities"a sample list of available entities (typically of length 10)
    "SampleEntityClasses"a sample list of available entity classes (typically of length 10)
    "EntityCount"number of entities available
    "Entities"the list of available entities
    "EntityCanonicalNames"the standard names of available entities
    "EntityClasses"the list of available entity classes
    "EntityClassCanonicalNames"the standard names of available entity classes
    "PropertyClasses"the list of available property classes
    "PropertyClassCanonicalNames"the standard names of available property classes
    "PropertyCount"number of properties available
  • The following annotations can be used in the third argument of EntityValue["ZIPCode",property,annotation]:
  • "Source"source information for the property
    "Date"the date associated with the entity-property value (if any)
    "EntityAssociation"an association of entities and entity-property values
    "PropertyAssociation"an association of properties and entity-property values
    "EntityPropertyAssociation"an association in which the specified entities are keys, and values are a nested association of properties and entity-property values
    "PropertyEntityAssociation"an association in which the specified properties are keys, and values are a nested association of entities and entity-property values
    "Dataset"a dataset in which the specified entities are keys, and values are an association of property names and entity-property values
  • The following annotations can be used in the second argument of EntityValue[property,annotation]:
  • "Qualifiers"the list of possible qualifiers for the property
    "QualifierValues"the list of possible values that can be given to each qualifier
    "DefaultQualifierValues"the list of default values for the property's qualifiers
    "Description"a brief textual description of the property
    "Definition"a detailed textual definition of the property
    "PhysicalQuantity"the physical quantity associated with the entity-property value
    "Unit"the unit associated with the entity-property value
  • A qualifier value of Automatic indicates that an applicable format of values can be used; e.g. for the "Date" qualifier, this includes a proper date or date span.

Examples

Basic Examples  (3)

Use for entity discovery:

In[1]:=
Click for copyable input
Out[1]=

Find a property value for an entity:

In[1]:=
Click for copyable input
Out[1]=

Retrieve a dataset of all available properties for an entity:

In[1]:=
Click for copyable input
Out[1]=