Parsing out key:value pairs from text messages and geocoding them

In this third tutorial, we scrape the incoming text messages for pairings of strings in the format “key:value value …”, which we parse out with a regular expression and store in a separate Keyvalue table. This allows us to intelligently search and manipulate the data, as well as to geocode addresses submitted along with data. This yields latitude & longitude data for a given text message.


WHOOZ Tutorial: Parsing out key:value pairs from text messages and geocoding them.

Download the code for this tutorial here: whooz-keyvalue-tutorial.zip (LGPL 3.0)

This builds on the code written in the last tutorial, Batch importing text messages from Twitter in Rails

Leave a Reply