A twitter bot that tweets a map with random cities on it to @RandomDistance
This bot uses Google Places APIs to find two random cities on Earth and calculates the distance between them. It will then pull a static map via the Google Static Maps API and tweet everything it has accumulated. The distance calculation uses the haversine formula which I cribbed from here.
Dependencies
- Google API key and permissions from the Google API Console
- Twitter consumer keys and access tokens
- python-twitter Module
TODO
- Add more GIS data
- Add weather data
The distance between Yulin, Shaanxi, China and Attendorn, Germany is 7514km
pic.twitter.com/WGWpCDFhwm
— Random Distance (@RandomDistance)
February 1, 2014
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
