########################################################################################## GPXIN-34: Normalise attribute names ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2017-07-04 12:19:11) Project: PHP GPXIngest (GPXIN) Reported By: btasker Assigned To: btasker Targeted for fix in version: - 1.03 Time Estimate: 24 minutes Time Logged: 21 minutes ----------------------------------------------------------------------------------------- Issue Description ================== As pointed out in Github #19 there's some inconsistency in attribute naming between routes and tracks. In tracks we use "elevation" whereas in waypoint types we use "ele". Need to look at making this consistent ----------------------------------------------------------------------------------------- Issue Relations ================ - Github #19 (https://github.com/bentasker/PHP-GPX-Ingest/issues/19) - Documentation (bentasker.co.uk) (https://www.bentasker.co.uk/documentation/development-programming/222-php-gpx-ingest?#objectsextract) ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2017-07-04 10:18:05 btasker ----------------------------------------------------------------------------------------- I agree with the observation in #19 that as we have "lat" and "lon", "ele" probably makes more sense. However, "elevation" has been used in tracks for quite some time, so simply changing it would break backwards-compatability (no matter how limited the size of the user base). So need to take that into account too. ----------------------------------------------------------------------------------------- 2017-07-04 10:29:30 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: PHP-GPX-Ingest Commit: af54adae36e8d24f6962919046ba22e6e9e67b37 Author: B Tasker