Automatically generate Anki flashcards about local geography.
First make sure you have Node.js installed.
git clone https://github.com/ryanbloom/ankifying-maps.git
cd ankifying-maps
npm install
There are three scripts for generating different types of flashcards.
Use GPS metadata in photos to generate prompts about the location of the camera. The front will contain the photo, and the back will contain a map of the surrounding area.
node geotag.js source1.jpeg source2.jpeg [...]
Sources can be individual image files or glob patterns.
Use compass metadata in photos to generate prompts about the orientation of the camera. The front will contain the photo, and the back will contain a compass showing which way is north.
node compass.js source1.jpeg source2.jpeg [...]
Sources can be individual image files or glob patterns.
Generate prompts to fill in missing buildings and streets on OpenStreetMap. The front will contain a map with a feature highlighted, and the back will contain the name of the feature.
node map.js map1.osm map2.osm [...]
You can get an .osm
file by using the Export button on
OpenStreetMap. Note that features near the
edge of the exported region (within options.mapContextRadius
) will be
excluded.
Map features are identified as either roads or places. By default, cards will be
generated for both. You can change this by passing --places=false
or
--roads=false
.