Skip to content

Instantly share code, notes, and snippets.

@brycemcd
Last active August 26, 2015 01:48
Show Gist options
  • Save brycemcd/6f710134202894ea4cc6 to your computer and use it in GitHub Desktop.
Save brycemcd/6f710134202894ea4cc6 to your computer and use it in GitHub Desktop.
extract moves api data into a csv
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