Last active
August 26, 2015 01:48
-
-
Save brycemcd/6f710134202894ea4cc6 to your computer and use it in GitHub Desktop.
extract moves api data into a csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq -r '.[0].segments | .[] | select(.type == "move") | .activities[] | {act: .group, startTime: .startTime, endTime: .endTime, duration: .duration, distance_in_meters: .distance} | map(.) | @csv' 20150825.json | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment