Skip to content

Commit

Permalink
update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Oct 20, 2024
1 parent a521bed commit 161fc11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nyc/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This is out of 43363 total records in the Milstein collection.
By default, this only uses the local "geocache"--it doesn't fetch any geocodes
from Google Maps. If you want to do that, add --use_network:

./generate-geocodes.py --images_ndjson data/images.ndjson --output_format records.js --geocode --use_network > /tmp/records.json
poetry run oldnyc/geocode/geocode.py --images_ndjson data/images.ndjson --output_format records.js --geocode --use_network > /tmp/records.json

If you want to determine per-borough geocoding coverage, run

Expand All @@ -60,12 +60,12 @@ Start by unpacking the geocache. This will speed up geocoding and help ensure st
To get new geocodes into the frontend, you need to geocode `photos.ndjson`
(see below for how to generate this). Do so with:

./generate-geocodes.py --images_ndjson data/photos.ndjson --lat_lon_map lat-lon-map.txt --output_format lat-lons-ny.js --geocode > viewer/static/js/nyc-lat-lons-ny.js
poetry run oldnyc/geocode/geocode.py --images_ndjson data/photos.ndjson --lat_lon_map data/lat-lon-map.txt --output_format lat-lons-ny.js --geocode > data/nyc-lat-lons-ny.js

The lat-lon-map.txt file can be generated via:

./generate-geocodes.py --images_ndjson data/images.ndjson --output_format locations.txt --geocode > locations.txt
./cluster-locations.py locations.txt > lat-lon-map.txt
poetry run oldnyc/geocode/geocode.py --images_ndjson data/images.ndjson --output_format locations.txt --geocode > data/locations.txt
poetry run oldnyc/geocode/cluster.py locations.txt > data/lat-lon-map.txt

## Generate photos.ndjson

Expand Down

0 comments on commit 161fc11

Please sign in to comment.