This program does this:
- extracts latitude and longitude from the EXIF data of images
- pushes images to an AWS S3 bucket
- generates a csv file with the extracted geo data and url of images
- pushes csv to CartoDB
To get started:
- install aws command line tools: https://aws.amazon.com/cli/
- install these python modules (
pip install module_name
usually works)- glob
- PIL
- boto
- install development version of cartodb's python module:
pip install -e git+git://github.com/CartoDB/cartodb-python.git#egg=cartodb
- rename
config.sample.json
toconfig.json
and fill in your CartoDB username and API key. Be sure not to push this file to GitHub!
Very helpful code on EXIF data extraction adapted from https://github.com/96chan/extract_EXIF.