adriangibbons/php-fit-file-analysis

getJSON function for laps or other fit sections

lnovali opened this issue · 2 comments

Is it possible to have new getJSON functions for other FIT sections? This function extracts only data from "record" section, but I need also an extractor for "lap" section.
Thank you so much for this helpful lib!

Hi @lnovali - off the top of my head it should be fairly straightforward to enable this. It might have to be through a call like getJSON("lap") or getJSON("all") to prevent breaking the API for others.

I'm very busy these days with other projects, but I'll try get round to this soon.

@lnovali have a look at the getJSONLap() method I just added in f6427a0

I've this meets your purpose then I'll roll into a new release.

Initially I tried to create something more generic, but got tied-up in knots.