DemocracyMap - Search
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.
Tip: $afomi on HandCash · afomi@handcash.io