Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danvk/sfhistory
Making a map of historical SF photos
https://github.com/danvk/sfhistory
Last synced: about 1 month ago
JSON representation
Making a map of historical SF photos
- Host: GitHub
- URL: https://github.com/danvk/sfhistory
- Owner: danvk
- Created: 2009-06-26T17:26:40.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T20:23:32.000Z (about 2 years ago)
- Last Synced: 2024-10-12T17:39:52.509Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 45.6 MB
- Stars: 14
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- awesome-ocr - sfhistory Making a map of historical SF photos -博文4所带库
README
To get going:
git clone git://github.com/danvk/sfhistory.git
cd sfhistory
dev_appserver.py viewerThen hit up http://localhost:8080/
If you want to do your own geocoding, you'll want to do this.
gunzip -c records.pickle.gz > records.pickle
tar -xzf geocache.tgz
echo "records.pickle\ngeocache\n*.pyc\nimages" >> .git/info/excludeThese files could be checked in directly, but that seemed wasteful.
Python can read the pickle.gz file directly, but this winds up being an order
of magnitude slower than reading the uncompressed version.To start up a new local AppEngine instance:
- (open up the GoogleAppEngineLauncher and start up the app)
- Run "./upload_to_appengine.py" and Ctrl-C when you're ready
- Hit up http://localhost:8080/Here's the sequence to bring up an instance of the viewer app:
# Geocode all images that can be geocoded:
$ ./generate-geocodes.py --geocode --maps_key (your key) > /tmp/geocodes.txt# Convert these geocodes into JSON:
$ ./generate-js.py > viewer/lat-lons.js# Upload JSON to AppEngine
$ cat /tmp/password | appcfg.py update --passin --email [email protected] viewer# Upload (new) thumbnail images to AppEngine
$ ./upload-thumbnails.py