After coming to New York, I spent much more time on walking than I did when I was in Taiwan where we always ride scooters for moving.
So I get the data from my iphone by following this page introduced in the slide. Surprisingly, I found that my phone recorded my walking data from last year, which is about the time I came to New York.
However, the data only records my steps and distance, so drawing out my path is kind of impossible; moreover, I come up with a thought that how far I can go if I add up the distance I have walked.
So I use Mapbox as my “container”, and try to draw circles to represent the distance I walked in each month. For the data, I have to convert the distance (in miles) into pixels that Mapbox needs by following this stack overflow page. Also, I animate the circle I draw by following this example.
The full code is here.