ryanwold.net

A civic-minded citizen seeking the singularity

Back to Entries

Using the Google Civic Information API with Ruby

draft
Date: 2017-01-26

Google offers a lot of APIs for public use, even a Civic Information API.

So, all that data government should be providing... well, Google is doing it. I'm glad somebody is doing it.

I tried to do it in 2007, and again, and again. But its a difficult task. Phil Ashlock, now working at the GSA, told me at OpenGovWest - if it was an easy problem, it'd already be solved.

We talked about the simple idea that government is place-based. Given a person's location, several different layers of government are applicable.

For example, if I live in Vacaville, California - Vacaville is a city within Solano County within the State of California.

So, that's 3 jurisidictional layers so far. City, County, and State.

Oh, and the United States, the federal government, so 4 jurisdictional layers.

Vacaville has a Mayor and a City Council, in addition to city government, which includes Police, Fire, Housing, and general government administration. In the mid 2000's Vacaville's annual budget was about $100 million per year.

Solano County has a Board of Supervisors, a Sheriff, a Coroner, a Treasurer, Auditor-Controller, Attorney. In the mid 2000's Solano County's budget fluctuated from $700 million to 1.1 billion during the housing boom.

The State has a Governor, the Assembly, Parks, Environment, Water, Transportation, Education, and again, general administration.

The United States has a President, Vice President, Secretary of State, etc. Along with Congress, and the Senate, and the Supreme Court. And more.


Yet, a local ballot shows there is more government.

In Vacaville, we have a School District, Vacaville Unified School District. Elementary.

At the State level, the Assembly is composed of members who represent State Assembly Districts.

At the federal level, there are Congressional Districts.

And, finally,

By Ryan Wold · © 2017–2026 Ryan Wold

Licensed CC BY-NC 4.0. AI training requires a license — machine-readable terms.

Enjoyed this? — any BSV wallet, HandCash, or plain old dollars.

Leave a tip

Tips go directly to a Bitcoin SV address I control — peer to peer, no platform in between. A few thousand satoshis is a fraction of a cent; it's the gesture that counts.

From any BSV wallet

Scan the QR code with your wallet's camera, or copy the address.

177DwUfSTW8RkFBJzYYcgr1YB8ngbhTYAc

With HandCash or any paymail wallet

Paymail is an email-style address for Bitcoin wallets. Send any amount to afomi@handcash.io

First time using Bitcoin? Yours Wallet is an open-source browser extension wallet, and HandCash is an easy mobile wallet — either takes a minute to set up.

Prefer regular money? Support via OpenCollective.