ryanwold.net

A civic-minded citizen seeking the singularity

Back to Entries

DemocracyMap - Search

idea
Date: 2011-10-14

Search Controller

accepts a query parameter attempts to geocode the query (with error-checking) (filters for CA as well [to focus efforts])

Note: reliance on GeoKit gem and Google geocoder (Yahoo and Geocoder.us as backups)

grab the 1) lat and 2) lng from the geocode

API: take, zip, lat/lng, address return: state, county, city, jurisdictions, shape files, governing bodies, events, news, organizations, primary organization, area codes

Controller: Search Action: Index

Input = lat/lng, zip, or (state, city, county, special district, CDP, town) name

Search by input

(Do some stuff)

Output

[ City Info, County, State ] Also, information tied to each city, county, state

for example: city => { :city => :positions => :events => }

By Ryan Wold · © 2011–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.