Skip to Content
AaviDocs

The ten cities

The ten utilities Aavi reads, the kind of data server each uses, and how the daily count and the field list flag work.

Aavi covers ten US utilities. Each one is a single data file in packages/sources/sources/, named for its key. Live counts are not repeated here: open Cities for the latest numbers.

The ten sources

City or areaPublisher named in the specFeed typeThe publisher's own page
Detroit, MIDetroit Water and Sewerage DepartmentArcGISdetroitmi.gov
Denver, CODenver WaterArcGISdenverwater.org
Philadelphia, PAPhiladelphia Water DepartmentArcGISwater.phila.gov
Dallas, TXDallas Water UtilitiesArcGISdallascityhall.com
St. Louis, MOSt. Louis Water DivisionArcGISArcGIS item
Washington, DCDC WaterArcGISdcwater.com
Akron, OHCity of AkronArcGISArcGIS item
New York State, whole stateNew York State Department of HealthSocratahealth.data.ny.gov
Allegheny County, PA, around PittsburghWestern Pennsylvania Regional Data Center, Parcel-level Lead Hazard DataCKANdata.wprdc.org
Norfolk, VACity of Norfolk Department of UtilitiesSocratadata.norfolk.gov

Every spec records who publishes the layer and where the publisher puts it out. For eight sources that is a page on the utility's or government's own website. For St. Louis and Akron it is the layer's item page inside the city's own ArcGIS organization, listed in ArcGIS's public record as "City of St. Louis" and "City of Akron GIS". No source is onboarded from a copy that someone else published.

How each source is matched to an address:

  • Eight sources cover one city, matched by the Census place code of the address. Pittsburgh's source covers the whole of Allegheny County, matched by county code, and uses the ZIP code to tell towns apart. New York State covers the whole state, and uses the ZIP code.
  • Dates differ by source. Detroit and DC Water publish none. Denver puts a date on each record. The other sources give the date their layer or dataset was last edited.

The daily census

Aavi reads each utility's record live when you look up an address. It keeps no copy of any home's record. Once a day it also counts every record in every inventory, so you can see what each city knows and how that changes.

  • A scheduled job in the Crew App runs once a day, set for 06:00 UTC. It asks each utility's feed for its total and its count in each of the four classes, using the same field map as the lookup. See the daily watch.
  • The counts are stored with the engine version that made them, and never with an address.
  • A source with no good count for 36 hours turns stale on Cities.
  • The daily history keeps up to 90 days for each source.

What the "Field list changed" tag means

Each day, the census also reads each source's list of fields and hashes the names, types and coded values of the fields Aavi reads. This hash is the field fingerprint. A renamed or retyped field is how a feed breaks without any error, so a change is worth a person's attention.

On Cities, a card shows a "Field list changed" tag with the day when the fingerprint differs between two good days that the same census version counted. These conditions matter:

  • Days with no good count are skipped. The next good day is compared with the last good one.
  • A new engine version can change how the fingerprint is made without any field changing. When the version differs from the previous good day's, the new day becomes the new base and is not flagged.
  • The store keeps the first count and the first field list of each day. When the two came from different runs, or the day's count failed, that day's version is unknown. The day is skipped, so a change made on it shows on the next good day of the same version.

A card also shows a "Count fell sharply" tag when a city's lead count or its unknown count falls by more than 10 percent from the nearest earlier good day made with the same version. A big fall can be good news, because a city may have resolved lines. It can also mean a source was swapped for a different file. The tag only asks a person to look.

On a lookup, the live field list is compared with the fingerprint in the city's spec. If a field has changed, the answer for that city is "source changed" until a reviewed update lands. See how a lookup works.