Skip to content
This is a tiny experiment with swift that calculates the current US population coverage of OpenAddresses
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Data
OpenAddressesCensus.xcodeproj
Packages
Results
Sources
Tests/OpenAddressesCensusTests
.gitignore
LICENSE
Package.swift
readme.md

readme.md

Open Address Census

This is a tiny experiment with swift that calculates the current US population coverage of OpenAddresses.

How it works

This combines census data and OpenAddresses sources to calculate population coverage in the US. Some sources in OpenAddresses have a geoid property that can be used to look up population.

For now we use county level population data. Although many sources are county level some are state or places (like cities). We account for state level because of the easy hierarchical nature of a geoid. We right now don't account for city level or possible overlap with county areas.

Results

Caveats

Since this doesn't support cities we are leaving out some big places like New York City. I've added a exclude.txt file to mark these as already included in the sources. This is not an exhaustive list but has some of the larger counties that have sources.

Usage

Census county populations

swift build && .build/debug/OpenAddressesCensus ./Data/PEP_2015_PEPANNRES_with_ann.csv [Path to open address git directory] ./Data/exclude.txt

Future work

  • Support for places like cities
  • Calculate population from polygons to support overlapping areas
You can’t perform that action at this time.