########################################################################################## GPXIN-27: Route Support ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2017-07-04 14:28:40) Project: PHP GPXIngest (GPXIN) Reported By: btasker Assigned To: btasker Targeted for fix in version: - 1.03 Time Estimate: 75 minutes Time Logged: 45 minutes ----------------------------------------------------------------------------------------- Issue Description ================== GPXIN-24 introduced support for ingesting waypoints defined in the source GPX file. A natural extension of that would be to add support for the _rteType_. For purposes of clarity: A route is the planned route, whereas the track is the path ultimately followed. There'll normally only be the one route, but as with tracks, it's best to work on the basis that there _may_ be more than one ----------------------------------------------------------------------------------------- Issue Relations ================ - relates to GPXIN-24: Waypoint Support - Causes GPXIN-31: Notices on Import - Causes GPXIN-32: Fatal error for Route only files when speed etc not suppressed - rteType (GPX Documentation) (http://www.topografix.com/gpx/1/1/#type_rteType) ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2016-02-20 23:43:42 btasker ----------------------------------------------------------------------------------------- An example GPX might be (from CycleSeven) -- BEGIN SNIPPET -- Test file by Patrick 0.0 Position 1 0.0 Position 2 0.0 Position 3 0.0 Position 4 Patrick's Route 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 -- Note that _rtept_ is of type _wptType_ so as in GPXIN-24 need to consider that extensions may be present ----------------------------------------------------------------------------------------- 2016-02-21 00:02:38 btasker ----------------------------------------------------------------------------------------- Given that the handling for a rtept is exactly the same as that for a waypoint, it probably makes sense to break some of the logic implemented in GPXIN-24 out into a new method to avoid duplication ----------------------------------------------------------------------------------------- 2016-02-21 00:02:51 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'In Progress' ----------------------------------------------------------------------------------------- 2016-02-21 00:08:27 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: PHP-GPX-Ingest Commit: 5b2cf342baf967742f9c068ee68778f43156e393 Author: B Tasker