For about one year I have used the Tractive Pet Tracker to track my families (and my) cats, my grandmothers cats and our road trip to Sweden (German). Now I want to share that cat tracking data and some additional data with you.

In this post I will

Share the raw data with you

Filter data (separate tracks for each cat and our vacation)

Share the filtered data with you

Show how to create a map (using leaflet) of our vacation

Create a map with a track for each cat

I also wrote a blog post for Revolution Analytics, showing how to create a map with different tracks for each month.

The data

As already mentioned the data was collected using the tracker from the company Tractive.

Data can be downloaded from their website in gpx or kml format when you have a premium subscription. I used the gpx format.

Such a file looks like this:

Generated by Tractive Platform Service Tracker LJWSIZUT, 2016-01-08T08:37:33+00:00 2016-01-07T23:19:26Z 427 2016-01-06T23:43:05Z speed: 0.5 394 2016-01-07T01:49:05Z 64 speed: 3.8

Since the tracker does not save which cat is wearing the tracker (although you can select it in the phone app), I took notes in an Excel sheet.

Reading the data

In a previous post I already showed how you can read gpx data like from my Pet Tracker. I updated my method to comply with a recommendation I found in this great article (library vs. require). I also converted the time column to a date to be able to compare it.

You need to install these libraries:

XML

plyr