Skip to content

hyl/MCFinder

Repository files navigation

#MCFinder
MCFinder is a geolocation tool that pulls in data from the Sunlight Foundation to display contact details for your local Senator or Representative. It is based on MPFinder, except it is probably a better starting point for your own country as there isn't as much country-specific code.

##Adapting to your country
Note: This really wasn't designed with open-sourcing or other countries in mind. There may be demons...

  1. Get the data of your local representatives, in JSON format. This needs to include contact details and their constituency name. This should be saved as data.json.
  2. Find an API to use for post/zip codes. We convert the lat/long provided by local geolocation APIs into a postcode using a service based on UK-Postcodes.
  3. Pop the URLs into the config array. Update the structure of the URLs throughout main.js as required (Cmd+F latlangBaseUrl and update, for example)
  4. Update the data rendering
  5. Once it's working, tweet me a link! (@mightyshakerjnr)

Releases

No releases published

Packages

No packages published