This is the source code and database backing https://trycontra.com
Either send an email to Jeff (jeff@jefftk.com) or send a Pull Request.
If you're making a pull request, the process is:
-
Update
dances.json
with your change. The structure of each record is:[url, city, weekdays, annual frequency, gender free?, active?],
For example:
["http://www.bidadance.org/", "Cambridge MA", "Sundays", 21, "GF", true],
Note that annual frequencies are just guesses, and currently many of them are too high because of dances resuming with fewer annual events than before the pandemic.
-
Run
./lookup_locs.py
to updatedances_locs.json
with your changes and pull in latitude and longitude. -
Commit your changes and make a PR.
index.html
: main page, containing both the display and the scripts.dances.json
: dance database.dances_locs.json
: dance database with locations automatically added.zipcode.json
: giant map from zipcode to lat/lng.
You can get the initial CSV from anywhere, but I found this one easy: http://www.unitedstateszipcodes.org/zip-code-database/
Once you have the .csv
you can run:
python build_zipcode_json.py <csv-file>