Skip to content

Automatically generate Anki flashcards about local geography

Notifications You must be signed in to change notification settings

ryanbloom/ankifying-maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ankifying maps

Automatically generate Anki flashcards about local geography.

Setup

First make sure you have Node.js installed.

git clone https://github.com/ryanbloom/ankifying-maps.git
cd ankifying-maps
npm install

Usage

There are three scripts for generating different types of flashcards.

Geotag

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.

Compass

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.

Map

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.

About

Automatically generate Anki flashcards about local geography

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published