AdministrativeDivisionData

AdministrativeDivisionData["name","property"]
gives the value of the specified property for the administrative division .

AdministrativeDivisionData[{"name1","name2",},"property"]
gives a list of property values for the specified administrative division names.

AdministrativeDivisionData["name", "property", annotation]
gives the specified annotation associated with the property.

DetailsDetails

  • The specified in AdministrativeDivisionData can be an Entity, EntityClass, or canonical name.
  • The specified should be an EntityProperty, EntityPropertyClass, canonical name, or list thereof.
  • AdministrativeDivisionData[] gives a list of all administrative division entities.
  • AdministrativeDivisionData["Properties"] gives a list of available properties.
  • Properties that do not apply or are not known in a particular case are indicated by Missing[].
  • Properties include:
  • "Area"area
    "CapitalCity"capital city
    "Position"coordinates
    "MajorCities"major cities
    "Polygon"polygon
    "Population"population
    "PopulationDensity"population density
    "Subdivisions"subdivisions
  • Detailed historical socioeconomic and other data is available for US states and counties:
  • "AggregateHouseholdIncome"aggregate household income
    "AnnualBirths"annual births
    "AnnualDeaths"annual deaths
    "Area"area
    "AverageCommute"average commute time
    "BorderingCounties"bordering counties
    "BorderingStates"bordering states
    "CountySalesTaxRate"county sales tax rate
    "DisabledPersons"disabled people
    "DistrictCourt"district court
    "FarmLandArea"farmland area
    "FederalGovernmentExpenditure"federal government expenditure
    "FederalGovernmentExpenditurePerCapita"federal government expenditure per capita
    "FIPSCode"FIPS code
    "ForeignBornFraction"fraction foreign born
    "HealthInsuranceCoverageRate"insured population fraction
    "HealthInsurancePeopleCovered"people with health insurance
    "HealthInsurancePeopleNotCovered"people without health insurance
    "HealthInsuranceUncoveredRate"uninsured population fraction
    "HighestElevation"highest elevation
    "LandArea"land area
    "HighestPoint"highest point
    "InfantDeaths"infant deaths
    "LowestElevation"lowest elevation
    "LowestPoint"lowest point
    "MeanElevation"mean elevation
    "MedianAge"median age
    "MedianHouseholdIncome"median household income
    "MedianSalePrice"median home sale price
    "MotorVehicleTheft"number of motor vehicle thefts
    "MotorVehicleTheftRate"rate of motor vehicle thefts
    "Mottoes"state mottoes
    "Name"name
    "Nicknames"state nicknames
    "PersonsPerHousehold"people per household
    "Polygon"polygon
    "Population"population
    "Population15Plus"population age 15
    "Population1Plus"population age 1
    "Population2000Census"2000 census population
    "Population25Plus"population age 25
    "Population3Plus"population age 3
    "Population5Plus"population age 5
    "PopulationDensity"population density
    "PopulationNetChange"population net change
    "Position"coordinates
    "PovertyPopulation"population by poverty status
    "Slogans"state slogan
    "Song"state song
    "StateAbbreviation"abbreviation
    "Subdivisions"subdivisions
    "TimeZone"time zone
    "TotalVoterRegistrationRate"total voter registration rate
    "TotalVotingRate"total voting rate
    "TreeAndSpeciesName"state tree
    "ZIPCodes"ZIP codes
  • Housing properties include:
  • "AnnualHousingUnitsChangeFraction"housing units change rate
    "AverageSalePrice"average home sale price
    "HomeOwnershipRate"home ownership rate
    "HomeVacancyRate"home vacancy rate
    "HousePriceIndex"house price index
    "HousingPermit"housing permits
    "HousingStarts"housing starts
    "HousingUnits"households
    "HousingUnitsChange"housing units change
    "HousingUnitsInMultipleUnitStructuresFraction"housing in multiple unit structures
    "NewPrivateHousingUnits"new housing units
    "NewPrivateHousingUnitsValue"new housing units value
    "OwnerOccupiedHousingMedianValue"median owner-occupied home value
    "OwnerOccupiedHousingUnitsFraction"owner-occupied housing
    "RentalVacancyRate"residential rental vacancy rate
    "RentFourBedrooms"four-bedroom apartment fair market rent
    "RentOneBedrooms"one-bedroom apartment fair market rent
    "RentThreeBedrooms"three-bedroom apartment fair market rent
    "RentTwoBedrooms"two-bedroom apartment fair market rent
    "RentZeroBedrooms"studio apartment fair market rent
  • Business- and employment-related properties include:
  • "AccommodationAndFoodServicesSales"accommodation and food services sales
    "Businesses"number of businesses
    "CivilianLaborForce"civilian labor force
    "CivilianUnemploymentRate"civilian unemployment rate
    "CoincidentEconomicActivityIndex"coincident economic activity index
    "Earnings"earnings
    "EarningsAverage"average earnings per job
    "Employment"employment
    "EmploymentNetChange"employment change
    "GiniIndex"Gini index
    "GovernmentEmployment"government employment
    "GrossDomesticProduct"GDP
    "GrossStateProduct"GSP
    "HighSalesTaxRate"highest sales tax rate
    "LowSalesTaxRate"lowest sales tax rate
    "ManufacturingValueOfShipments"manufacturing value of shipments
    "MedianSalesTaxRate"median total sales tax rate
    "MinimumWage"minimum wage
    "NonemployerEstablishments"nonemployer businesses
    "PerCapitaIncome"per capita income
    "PerCapitaPersonalIncome"per capita personal income
    "PrivateNonfarmEmployment"private non-farm employment
    "PrivateNonfarmEmploymentPercentChange"private non-farm employment change
    "PrivateNonfarmEstablishments"private non-farm businesses
    "RetailSales"retail sales
    "RetailSalesPerCapita"retail sales per capita
    "StateGovernmentTaxCollections"state government tax collections
    "StateSalesTaxRate"state sales tax rate
    "WholesaleSales"wholesale sales
    "Workforce"employment
  • Crime properties include:
  • "AggravatedAssault"number of aggravated assaults
    "AggravatedAssaultRate"rate of aggravated assault
    "Burglary"number of burglaries
    "BurglaryRate"rate of burglary
    "CrimeRate"total rate of crime
    "CrimeTotal"total number of crimes
    "ForcibleRape"number of rapes
    "ForcibleRapeRate"rate of rape
    "LarcenyTheft"number of larcenies
    "LarcenyTheftRate"rate of larceny
    "MurderNonnegligentManslaughter"incidents of murder and nonnegligent manslaughter
    "MurderNonnegligentManslaughterRate"rate of murder and nonnegligent manslaughter
    "PropertyCrimeRate"total rate of property crime
    "PropertyCrimeTotal"total number of property crimes=
    "Robbery"number of robberies
    "RobberyRate"rate of robbery
    "ViolentCrimeRate"total rate of violent crime
    "ViolentCrimeTotal"total number of violent crimes
  • Some properties are available for AdministrativeDivisionData as a whole and can be given using the form AdministrativeDivisionData["property"]. Such properties include:
  • "Entities"all available entities
    "EntityCount"total number of available entities
    "Classes"all available entity classes
    "EntityClassCount"total number of available entity classes
    "SampleEntities"list of sample entities
    "SampleEntityClasses"list of sample entity classes
    "EntityCanonicalNames"list of all entity canonical names
    "PropertyCanonicalNames"list of all property canonical names
    "EntityClassCanonicalNames"list of all entity class canonical names
    "RandomEntities"pseudorandom sample entities
    {"RandomEntities",n}n pseudorandom entities
    "RandomEntityClasses"pseudorandom sample entity classes
    {"RandomEntityClasses",n}n pseudorandom entity classes
  • The following annotations can be used in the third argument of AdministrativeDivisionData["name","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
    "Source"source information for the property
    "Date"the date associated with the entity-property value (if any)
    "PhysicalQuantity"the physical quantity associated with the entity-property value
    "Unit"the unit associated with the entity-property value
    "EntityAssociation"an Association of entities and entity-property values
    "PropertyAssociation"an Association of properties and entity-property values
  • If a function is provided as an annotation, it will be used to aggregate the result data. Typical aggregation functions include:
  • Minthe minimum value
    Maxthe maximum value
    Meanthe mean value
    Commonestthe most frequently occuring value
    Medianthe median value
    Totalreturns the total
    Lengththe number of elements

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Use Ctrl+Equal for entity discovery:

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

Find the capital city of an administrative division:

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

Find the population density of an administrative division:

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

Find the subdivisions within an administrative division:

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

Get a list of sample entities for administrative divisions:

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

Obtain a sample list of classes of administrative divisions:

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

Find administrative divisions in a given class:

In[7]:=
Click for copyable input
Out[7]=
Introduced in 2014
(10.0)