Skip to content

Commit

Permalink
Added functions for extraction of waypoint information
Browse files Browse the repository at this point in the history
  • Loading branch information
bentasker committed Feb 20, 2016
1 parent 08f22bf commit a113085
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions GPXIngest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1131,10 +1131,39 @@ public function getGPXNameSpaces(){
}


/** Get any waypoints which were ingested (GPXIN-24)
*
* @return array
*
*/
public function getWaypoints(){
return $this->journey->related->waypoints->points;
}

/** Get a waypoint which were ingested (GPXIN-24)
*
* @arg INT - Key of the requested waypoing
*
* @return stdClass
*
*/
public function getWaypoint((int)$id){
return $this->journey->related->waypoints->points[$id];
}

/** ---- Statistics retrieval ---- */


/** Get a count of the recorded way points
*
*
* @return INT
*
*/
public function getWayPointCount(){
return $this->journey->metadata->waypoints;
}



/** Get a count of the recorded track points for a given session
Expand Down

0 comments on commit a113085

Please sign in to comment.