Plotting tweets on a map
This section discusses the visual representation of tweets using maps. Data visualizations are a nice way to provide an easy-to-digest overview of the data as a picture can provide a summary of a particular feature of a dataset.
In a small portion of tweets, we can find details about the geographic localization of the user's device in the form of geographic coordinates. While many users disable this functionality on their mobile, there is still an interesting opportunity in terms of data mining to understand how the tweets are geographically distributed.
This section introduces GeoJSON, a common data format for geographic data structures and the process of building interactive maps of our tweets.
From tweets to GeoJSON
GeoJSON (http://geojson.org) is a JSON-based format for encoding geographic data structures. A GeoJSON object can represent a geometry, feature, or collection of features. Geometries only contain the information about the shape; its examples include...