Skip to content

Instantly share code, notes, and snippets.

@mjchamplin
Created June 17, 2014 21:30
Show Gist options
  • Save mjchamplin/688463e9f5e1f0d4ae8b to your computer and use it in GitHub Desktop.
Save mjchamplin/688463e9f5e1f0d4ae8b to your computer and use it in GitHub Desktop.
1. Pull latest Instagram photo via API (php file, crontab)
2. Parse data > location > "latitude", "longitude"
3. Write one-line location to `whereami.json`
4. Load .json on pageload and pass locations into mapbox.
Mapbox background on champl.in will center map on latest Instagram location.
This could also be done with Twitter or Foursquare (or any social API with location data).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment