DescriptionStats are currently only generated based upon the tracks. Most of them won't actually apply to a route (as there won't be an indication of speed etc) however stats like bounds may have some use.
This issue is to add a new routes child to the stats object and then populate it with the relevant entries
Activity
2017-07-04 09:37:30
Webhook User-Agent
View Commit
2017-07-04 09:57:30
Webhook User-Agent
View Commit
2017-07-04 10:11:30
Webhook User-Agent
View Commit
2017-07-04 10:14:25
We set each of these (assuming they're present), so might want to consider whether any of them are of any use in amongst the stats.
I can see a potential use for having bounds on elevation (eles) for example.
2017-07-04 10:30:04
2017-07-04 11:09:30
Webhook User-Agent
View Commit
2017-07-04 11:11:30
Webhook User-Agent
View Commit
2017-07-04 11:15:24
But, because "ele" has been added to the bounds object, it now also shows for tracks, so need to make sure that's either populated or unset (I'd prefer the former) too.
2017-07-04 11:16:08
2017-07-04 11:27:03
Within the track stats, "elevation" is a standalone attribute:
Although I think it probably makes more sense in bounds, that's been the structure for quite some time, so it'd be better to replicate it and keep things consistent between the two objects.
Will look at shuffling things around.
2017-07-04 11:32:58
Probably worth calculating and adding avgChange as well
2017-07-04 11:33:30
Webhook User-Agent
View Commit
2017-07-04 11:45:30
Webhook User-Agent
View Commit
2017-07-04 11:57:34
Track:
Route:
At the track level, elevation might have an additional attribute "gain" but that's an unfinished experimental feature (from https://github.com/bentasker/PHP-GPX-Ingest/pull/18 ) so I'm ignoring it for now, especially as it's only added at the track level.
2017-07-04 11:58:29
2017-07-04 11:59:24
2017-07-04 11:59:34
2017-07-04 11:59:34
2017-07-04 11:59:37
2017-07-04 14:27:27