4 months agoGPXIN-37 - BUGFIX: object attribute is incorrectly referenced resulting in PHP warnings master
B Tasker []
GPXIN-37 - BUGFIX: object attribute is incorrectly referenced resulting in PHP warnings

Raised in Github #20

2 years agoGPXIN-36 - Bumping internal version to 1.03
B Tasker []
GPXIN-36 - Bumping internal version to 1.03

There have been a lot of changes made since the version was set at 1.02, so drawing a line in the sand under them.

Should use tags really, but haven't gotten around to making sure the webhooks won't duplicate commit notifications :(

2 years agoGPXIN-27 Added route object fetchers.
B Tasker []
GPXIN-27 Added route object fetchers.

2 years agoGPXIN-27 - Implementing route related ID fetchers.
B Tasker []
GPXIN-27 - Implementing route related ID fetchers.

2 years agoGPXIN-11 Fix stationary time calculations.
B Tasker []
GPXIN-11 Fix stationary time calculations.

There was a minor issue with the way stationary time was calculated, meaning it'd actually be calculated higher than was true.

See http://projects.bentasker.co.uk/jira_projects/browse/GPXIN-11.html for an explanation of the issue

2 years agoUpdating README to note waypoint and route support
B Tasker []
Updating README to note waypoint and route support

2 years agoUpdating README to reflect the feature changes in GPXIN-23
B Tasker []
Updating README to reflect the feature changes in GPXIN-23

2 years agoGPXIN-23 Move calcDistance out of experimental and enable by default
B Tasker []
GPXIN-23 Move calcDistance out of experimental and enable by default

* Can be suppressed using 'calcdistance'
* Adds 'distanceTravelled' attribute to trackpoints (measured in feet)

Also means that auto-speed calculation (implemented in GPXIN-13) will be used if speed has not been declared within the GPX file

2 years agoExposed new method getRouteStats for GPXIN-27
B Tasker []
Exposed new method getRouteStats for GPXIN-27

Returns the general route stats object

2 years agoAdd maxChange and minChange to track elevation stats
B Tasker []
Add maxChange and minChange to track elevation stats

Shows the (max|min)imum change between two trackpoints. Supported at journey, segment and track level

2 years agoGPXIN-33 Add AvgChange to route elevation stats. Have also added maxChange and minChange
B Tasker []
GPXIN-33 Add AvgChange to route elevation stats. Have also added maxChange and minChange

Will need to add maxChange and minChange to the track stats to help keep things consistent, but I figure they could be helpful if the route describes a marathon or cycle route so you can gauge how knackering it's likely to be

2 years agoGPXIN-33 Elevation should be it's own attribute in route stats
B Tasker []
GPXIN-33 Elevation should be it's own attribute in route stats

Changed to keep it consistent with the structure of the track related stats object

2 years agoRemoving excess line
B Tasker []
Removing excess line

2 years agoWhoops, didn't mean to break that. Fix variable reference
B Tasker []
Whoops, didn't mean to break that. Fix variable reference

2 years agoMore whitespace tidying
B Tasker []
More whitespace tidying

2 years agoGPXIN-33 Add ability to unsuppress both wptlocation and wptele
B Tasker []
GPXIN-33 Add ability to unsuppress both wptlocation and wptele

2 years agoTidy whitespace
B Tasker []
Tidy whitespace

2 years agoGPXIN-33 Create elevation stats for routes.
B Tasker []
GPXIN-33 Create elevation stats for routes.

Generates max/min bounds for elevations defined within a route. Elevation can be suppressed by suppressing type 'wptele'

2 years agoAllow suppression of location in waypoints (gpx->suppress('wptlocation'))
B Tasker []
Allow suppression of location in waypoints (gpx->suppress('wptlocation'))

I have no idea why you might want to do this, but I'm sure someone will find a need/use at some point

Also adding an indicator for suppressing elevation data, but haven't used it yet

2 years agoGPXIN-34 - Normalise elevation attribute name in trackpoints to "ele"
B Tasker []
GPXIN-34 - Normalise elevation attribute name in trackpoints to "ele"

To avoid break b/c, "elevation" remains valid but should be considered deprecated and *will* be removed at some point.

In a GPX file with 2100 trackpoints, having both set makes the serialised JSON approximately 8K larger.

2 years agoBUGFIX - Correcting population of elevation stats
B Tasker []
BUGFIX - Correcting population of elevation stats

2 years agoGPXIN-33 Move insantiation of Bounds object to private method
B Tasker []
GPXIN-33 Move insantiation of Bounds object to private method

Avoiding duplication as we were otherwise creating duplicate objects in multiple places. Can't see that we'd need to add an attribute, but it's now easier to do if the need arises

2 years agoGPXIN-33 Populate route stats
B Tasker []
GPXIN-33 Populate route stats

Had to remove the tidying done in the previous commit, as PHP was linking to two properties (even when created with clone?) so if you updated routestats->bounds->lat with a value it'd also show in the main stats

Will take a different approach to tidying up creating the various bounds objects shortly

2 years agoGPXIN-33 Create route related general stats object.
B Tasker []
GPXIN-33 Create route related general stats object.

We don't currently populate these statistics, just making them available ready to do so.

2 years agoReduce line count when setting up journey stats object
B Tasker []
Reduce line count when setting up journey stats object

2 years agoInitial fix for GPXIN-32 (Github #19) - Move track stats to new method and only fire if some tracks have been processed
B Tasker []
Initial fix for GPXIN-32 (Github #19) - Move track stats to new method and only fire if some tracks have been processed

This prevents the fatal error from occurring. There may be other edge cases that can still trigger errors though, so more testing is needed

2 years agoGPXIN-31 Ensure journey->related->routes is initialised correctly (from #19) to prevent WARNING level entries
B Tasker []
GPXIN-31 Ensure journey->related->routes is initialised correctly (from #19) to prevent WARNING level entries

Test case is fairly simple:

{noformat}
<?php

error_reporting(E_ALL);
ini_set('display_errors','On');

require 'src/GPXIngest/GPXIngest.php';

$gpx = new GPXIngest\GPXIngest;
$gpx->loadFile('gpx-ingest-pb.gpx');
{noformat}

Where gpx-ingest-pb is a GPX file that makes use of rte points (see #19 for an example)

2 years agoMerge pull request #18 from shamotj/master
Ben Tasker []
Merge pull request #18 from shamotj/master

Add total elevation gain to stats

2 years agoAdded elevation gain to stats
Tomáš Jenej []
Added elevation gain to stats

2 years agoMerge pull request #16 from Sibyx/master
Ben Tasker []
Merge pull request #16 from Sibyx/master

Namespacing fix

2 years agoMerge pull request #15 from Sibyx/master
Ben Tasker []
Merge pull request #15 from Sibyx/master

Composer package

2 years agoNamespacing fix
Jakub Dubec []
Namespacing fix

2 years agoComposer package
Jakub Dubec []
Composer package

3 years agoMerge pull request #14 from fbonzon/issue-6
Ben Tasker []
Merge pull request #14 from fbonzon/issue-6

Allow missing timestamps or same consecutive timestamps

3 years agoAllow missing timestamps or same consecutive timestamps
François B []
Allow missing timestamps or same consecutive timestamps

Avoids division by zero errors.

3 years agoRemoving a route related warning
B Tasker []
Removing a route related warning

3 years agoPrevented acceleration warnings when track contains single trackpoint. See GPXIN-28
B Tasker []
Prevented acceleration warnings when track contains single trackpoint. See GPXIN-28

3 years agoHandling invalid route ids
B Tasker []
Handling invalid route ids

3 years agoFixing typing error
B Tasker []
Fixing typing error

3 years agoAdded basic functions for retrieving routes. See GPXIN-27
B Tasker []
Added basic functions for retrieving routes. See GPXIN-27

3 years agoAdded Route support into ingest method. See GPXIN-27
B Tasker []
Added Route support into ingest method. See GPXIN-27

3 years agoMoved wptType logic into new method. See GPXIN-27
B Tasker []
Moved wptType logic into new method. See GPXIN-27

3 years agoAdded functions for extraction of waypoint information
B Tasker []
Added functions for extraction of waypoint information

3 years agoMoved waypoints to being a property of journey. See GPXIN-24
B Tasker []
Moved waypoints to being a property of journey. See GPXIN-24

3 years agoImplemented parsing of waypoints for GPXIN-24
B Tasker []
Implemented parsing of waypoints for GPXIN-24

3 years agoAdded per track lat/lon bounds for GPXIN-26 (FR #7)
B Tasker []
Added per track lat/lon bounds for GPXIN-26 (FR #7)

3 years agoImplemented Segment and overall lat/lon bounds for GPXIN-26
B Tasker []
Implemented Segment and overall lat/lon bounds for GPXIN-26

3 years agoCorrecting missed variable name change. See GPXIN-25
B Tasker []
Correcting missed variable name change. See GPXIN-25

3 years agoRenaming trackcounter variable to something more meaningful. See GPXIN-25
B Tasker []
Renaming trackcounter variable to something more meaningful. See GPXIN-25

3 years agoFixed track counter. See GPXIN-25 and #5
B Tasker []
Fixed track counter. See GPXIN-25 and #5

3 years agoMerge pull request #3 from fbonzon/patch-1
Ben Tasker []
Merge pull request #3 from fbonzon/patch-1

Lat and long are switched in distance formula

3 years agoLat and long are switched in distance formula
François B []
Lat and long are switched in distance formula

3 years agoAdded utility function to list namespaces. See GPXIN-20
Ben Tasker []
Added utility function to list namespaces. See GPXIN-20

3 years agoStarted implementing support for GPX Extensions. See GPXIN-20
Ben Tasker []
Started implementing support for GPX Extensions. See GPXIN-20

3 years agoWhitespace correction
Ben Tasker []
Whitespace correction

3 years agoAdded missing variables to smarttrack related function call
Ben Tasker []
Added missing variables to smarttrack related function call

3 years agoUpdated metadata to reflect whether speed has been auto-calculated. See GPXIN-13
Ben Tasker []
Updated metadata to reflect whether speed has been auto-calculated. See GPXIN-13

3 years agoEnsured calculated ptspeed is an integer. See GPXIN-13
Ben Tasker []
Ensured calculated ptspeed is an integer. See GPXIN-13

3 years agoClass will calculate speed and timemoving from calculateddistance if enabled. Minor issues. See GPXIN-13
Ben Tasker []
Class will calculate speed and timemoving from calculateddistance if enabled. Minor issues. See GPXIN-13

4 years agoFix for #2
[]
Fix for #2

4 years agoEliminated another case of undefined object syndrome. See GPXIN-15
Ben Tasker []
Eliminated another case of undefined object syndrome. See GPXIN-15

4 years agoPrevented Notice error when speed is suppressed
Ben Tasker []
Prevented Notice error when speed is suppressed

4 years agoAuto-suppressed speed if the GPX file doesn't appear to contain speeds. See GPXIN-16
Ben Tasker []
Auto-suppressed speed if the GPX file doesn't appear to contain speeds. See GPXIN-16

4 years agoPushed state of all experimental features into metadata to aid debugging issues. See GPXIN-18
Ben Tasker []
Pushed state of all experimental features into metadata to aid debugging issues. See GPXIN-18

4 years agoPushed distance travelled to the stats objects. See GPXIN-6
Ben Tasker []
Pushed distance travelled to the stats objects. See GPXIN-6

4 years agoAdded basic Distance calculations for GPXIN-6
Ben Tasker []
Added basic Distance calculations for GPXIN-6

4 years agoUpdating header to reference bug tracker
Ben Tasker []
Updating header to reference bug tracker

4 years agoAdded ability to mark functionality as experimental. See GPXIN-17
Ben Tasker []
Added ability to mark functionality as experimental. See GPXIN-17

4 years agoEnsured objects are defined before properties assigned. See GPXIN-15
Ben Tasker []
Ensured objects are defined before properties assigned. See GPXIN-15

4 years agoAdded project email address to README
Ben Tasker []
Added project email address to README

4 years agoUpdated README
Ben Tasker []
Updated README

5 years agoPrevented SmartTrack inifite loop. See GPXIN-12
B Tasker []
Prevented SmartTrack inifite loop. See GPXIN-12

5 years agoAdd time accelerating/decelerating stats. See GPXIN-7
B Tasker []
Add time accelerating/decelerating stats. See GPXIN-7

5 years agoAdded time stationary/moving stats. See GPXIN-7
B Tasker []
Added time stationary/moving stats. See GPXIN-7

5 years agoMoved version to Metadata. See GPXIN-2
B Tasker []
Moved version to Metadata. See GPXIN-2

5 years agoImplemented elevation stats. See GPXIN-4
B Tasker []
Implemented elevation stats. See GPXIN-4

5 years agoCalculated change in elevation. See GPXIN-5
B Tasker []
Calculated change in elevation. See GPXIN-5

5 years agoAdded Unit of Measurement to Stats objects. See GPXIN-3
B Tasker []
Added Unit of Measurement to Stats objects. See GPXIN-3

5 years agoAdded GPXIngest Version number to the Journey object. See GPXIN-2
B Tasker []
Added GPXIngest Version number to the Journey object. See GPXIN-2

5 years agoImplemented Accel/Decel stats. See GPXIN-1
B Tasker []
Implemented Accel/Decel stats. See GPXIN-1

5 years agoAdded getTrackName()
B Tasker []
Added getTrackName()

5 years agoImplemented encapsulation
B Tasker []
Implemented encapsulation

5 years agoImproved import error handling
B Tasker []
Improved import error handling

5 years agoUpdated README and version number
B Tasker []
Updated README and version number

5 years agoCreated gitignore
B Tasker []
Created gitignore

5 years agoAdded metadata retrieval. See FR #1
B Tasker []
Added metadata retrieval. See FR #1

5 years agoAdded metadata retrieval. See FR #1
B Tasker []
Added metadata retrieval. See FR #1

5 years agoRemoved commented out code
B Tasker []
Removed commented out code

5 years agoImplemented ability to suppress certain data before import
B Tasker []
Implemented ability to suppress certain data before import

5 years agoAdded metadata to JSON object to identify Smarttrack status
B Tasker []
Added metadata to JSON object to identify Smarttrack status

5 years agoAdded SmartTrack. See FR #1
B Tasker []
Added SmartTrack. See FR #1

5 years agoMoved Stats generation to utility functions
B Tasker []
Moved Stats generation to utility functions

5 years agoUpdated README
B Tasker []
Updated README

5 years agoAdded return status to loadFile/loadString
B Tasker []
Added return status to loadFile/loadString

5 years agoAdded speedint
Ben Tasker []
Added speedint

5 years agoAdded Segment stats - modal, min and max speeds
Ben Tasker []
Added Segment stats - modal, min and max speeds

5 years agoUpdated documentation
Ben Tasker []
Updated documentation

5 years agoAdded V1.1 of class
Ben Tasker []
Added V1.1 of class

5 years agoAdded License file
Ben Tasker []
Added License file

5 years agoInitial commit
Ben Tasker []
Initial commit