Process events to provide semantic translation for later processing
location
rule in the Personal Data Storage exercise to also store lat-long attributes from a Foursquare checkinnearby
that listens for the current:location event. math
library to calculate the distance between the lat-long coordinates from the PDS module and those reported with the location:new_current
event. explicit:location_nearby
event otherwise raise a explicit:location_far
event. Both events should contain the distance as an attribute. location:nearby
event that sends a text message (see the Twilio module documentation) with the distance to your phone. Make sure you install this ruleset as well. location:new_current
event using the ESL you designed. Be sure you've checked in with Foursquare since modifying the ruleset to store lat-long data. This exercise previously named the |