source for trycontra.com
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README
about.html
add_cdss.py
background.jpg
build_zipcode_json.py
callers-heatmap.html
callers-zips.json
cdss_exclusions.txt
cdss_tc_mapping.txt
dances.json
dances_locs.json
friday-points.html
heatmap-points.html
heatmap.html
index.html
list-by-day.html
list.html
lookup_locs.py
monday-points.html
saturday-points.html
sunday-points.html
template-day-points.html
thursday-points.html
tuesday-points.html
wednesday-points.html
zipcode.json

README

The source code for trycontra.com

index.html is the main page, containing both the display and the scripts

dances.json is the manual-editing dance database.  Add stuff to that
then run lookup_locs.py, which adds location information to
dances.json to create dances_locs.json

zipcode.json is a giant map from zipcode to lat/lng.

index.html loads zipcode.json and dances_locs.json via ajax.

about.html is an about page.


How to update zipcodes:
* you can get them from anywhere, but I found this one easy:
    http://www.unitedstateszipcodes.org/zip-code-database/
* once you have their .csv you can run:
    python build_zipcode_json.py <their-csv-file>