Created
June 17, 2014 21:30
-
-
Save mjchamplin/688463e9f5e1f0d4ae8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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