########################################################################################## GPXIN-24: Waypoint Support ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2017-07-04 12:07:42) Project: PHP GPXIngest (GPXIN) Reported By: btasker Assigned To: btasker Affected Versions: - 1.03 Targeted for fix in version: - 1.03 Time Estimate: 35 minutes Time Logged: 55 minutes ----------------------------------------------------------------------------------------- Issue Description ================== Suggested on Github - https://github.com/bentasker/PHP-GPX-Ingest/issues/4 Implement support for Waypoints as defined in the GPX spec. ----------------------------------------------------------------------------------------- Issue Relations ================ - relates to GPXIN-27: Route Support - Waypoints (GPX Schema) (http://www.topografix.com/gpx/1/1/#type_wptType) - FR #4 (https://github.com/bentasker/PHP-GPX-Ingest/issues/4) ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2016-02-13 09:59:51 btasker ----------------------------------------------------------------------------------------- Replied with the following on Github: Could conceivably be added, sure (for reference - relevant part of schema is http://www.topografix.com/gpx/1/1/#type_wptType ). In fact, it should be fairly straightforward to drop in as they'll need processing (at ingest) independently of the trackpoints anyway I guess you'd then want to be able to do something like -- BEGIN SNIPPET -- $gpx->listWaypoints(); -- END SNIPPET -- To return all included Waypoints, or -- BEGIN SNIPPET -- $gpx->getWaypoint($wp-id); -- END SNIPPET -- To grab by a numerical identifier. Maybe even be able to retrieve by the name specified in the source GPX? -- BEGIN SNIPPET -- $gpx->getWaypointByName('foo'); -- END SNIPPET -- Probably also worth adding something to the JSON metadata to indicate whether there are any waypoints included. ----------------------------------------------------------------------------------------- 2016-02-20 22:12:10 btasker ----------------------------------------------------------------------------------------- An example GPX file (cobbled together using examples on Cycleseven) might be -- BEGIN SNIPPET -- Test file by Patrick 0.0 Position 1 0.0 Position 2 0.0 Position 3 0.0 Position 4 24-JUL-09 DarkRed 143.94 136.06 138.03 148.75 -- END SNIPPET -- So, we're going to want to look at creating a new object property to house the waypoints, and add the various possible attributes Note that waypoints can have their own extensions (for example) -- BEGIN SNIPPET -- 134.7094727 Bettys 02-FEB-10 14:10:06 02-FEB-10 14:10:06 Flag, Blue SymbolAndName -- END SNIPPET -- So support for those may need to be added later ----------------------------------------------------------------------------------------- 2016-02-20 22:12:58 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'In Progress' ----------------------------------------------------------------------------------------- 2016-02-20 22:38:27 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: PHP-GPX-Ingest Commit: c33637bcbeb75dae8dc783f1ffb555c8e46cea2d Author: B Tasker