OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret ZIP codes:

Interpreter["ComputedZIPCode"]["IL 61820"]

Restrict to ZIP codes in a given region:

Interpreter[Restricted["ZIPCode",(Entity["Illinois, United States", Entity["AdministrativeDivision",{"Illinois","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Illinois\", \"UnitedStates\"}]", "administrative division"])]]["zipcode 01742"]

Apply a property restriction:

Interpreter[Restricted["ComputedZIPCode",(EntityProperty["people per household", EntityProperty["ZIPCode","PersonsPerHousehold"], "EntityProperty[\"ZIPCode\", \"PersonsPerHousehold\"]"])->LessThan[(Quantity[2.5, "people", people, "People"])]]]["33013"]

Interpreter[Restricted["ComputedZIPCode",(EntityProperty["people per household", EntityProperty["ZIPCode","PersonsPerHousehold"], "EntityProperty[\"ZIPCode\", \"PersonsPerHousehold\"]"])->LessThan[(Quantity[2.5, "people", people, "People"])]]]["32962"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[SemanticImport, paclet:ref/SemanticImport])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[Entity, paclet:ref/Entity])  ▪  (RefLink[EntityValue, paclet:ref/EntityValue])  ▪  (RefLink[ZIPCodeData, paclet:ref/ZIPCodeData])  ▪  (RefLink[GeoWithinQ, paclet:ref/GeoWithinQ])}, {Related Entity Types:  (RefLink[ZIPCode, paclet:ref/entity/ZIPCode])  ▪  (RefLink[City, paclet:ref/entity/City])  ▪  (RefLink[USCongressionalDistrict, paclet:ref/entity/USCongressionalDistrict])  ▪  (RefLink[DistrictCourt, paclet:ref/entity/DistrictCourt])  ▪  (RefLink[Neighborhood, paclet:ref/entity/Neighborhood])  ▪  (RefLink[MetropolitanArea, paclet:ref/entity/MetropolitanArea])  ▪  (RefLink[AdministrativeDivision, paclet:ref/entity/AdministrativeDivision])}, {Related Interpreter Types:  (RefLink[ZIPCode, paclet:ref/interpreter/ZIPCode])  ▪  (RefLink[Location, paclet:ref/interpreter/Location])  ▪  (RefLink[City, paclet:ref/interpreter/City])  ▪  (RefLink[USState, paclet:ref/interpreter/USState])  ▪  (RefLink[USStateClass, paclet:ref/interpreter/USStateClass])  ▪  (RefLink[USCounty, paclet:ref/interpreter/USCounty])  ▪  (RefLink[USCountyClass, paclet:ref/interpreter/USCountyClass])  ▪  (RefLink[USCongressionalDistrict, paclet:ref/interpreter/USCongressionalDistrict])  ▪  (RefLink[DistrictCourt, paclet:ref/interpreter/DistrictCourt])  ▪  (RefLink[DistrictCourtClass, paclet:ref/interpreter/DistrictCourtClass])  ▪  (RefLink[Neighborhood, paclet:ref/interpreter/Neighborhood])  ▪  (RefLink[MetropolitanArea, paclet:ref/interpreter/MetropolitanArea])  ▪  (RefLink[AdministrativeDivision, paclet:ref/interpreter/AdministrativeDivision])  ▪  (RefLink[AdministrativeDivisionClass, paclet:ref/interpreter/AdministrativeDivisionClass])  ▪  (RefLink[Entity, paclet:ref/interpreter/Entity])  ▪  (RefLink[ComputedLocation, paclet:ref/interpreter/ComputedLocation])  ▪  (RefLink[ComputedCity, paclet:ref/interpreter/ComputedCity])  ▪  (RefLink[ComputedUSState, paclet:ref/interpreter/ComputedUSState])  ▪  (RefLink[ComputedUSCounty, paclet:ref/interpreter/ComputedUSCounty])  ▪  (RefLink[ComputedUSCongressionalDistrict, paclet:ref/interpreter/ComputedUSCongressionalDistrict])  ▪  (RefLink[ComputedDistrictCourt, paclet:ref/interpreter/ComputedDistrictCourt])  ▪  (RefLink[ComputedNeighborhood, paclet:ref/interpreter/ComputedNeighborhood])  ▪  (RefLink[ComputedMetropolitanArea, paclet:ref/interpreter/ComputedMetropolitanArea])  ▪  (RefLink[ComputedAdministrativeDivision, paclet:ref/interpreter/ComputedAdministrativeDivision])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})