ridebeeline / gpxkit Goto Github PK
View Code? Open in Web Editor NEWSwift GPX parser and writer
License: MIT License
Swift GPX parser and writer
License: MIT License
Hello, It is me again :) Thank you so much for this lovely open source!
I have an issue with parsing my GPX files that includes time zone in the track time.
Example :
<trkpt lat="45.295147" lon="6.590345"> <ele>2395.221668</ele> <time>2018-02-02T10:47:30+01:00</time> <hdop>3</hdop> <vdop>0</vdop> <extensions> <gte:gps speed="9.740301" azimuth="-1.000000" /> </extensions> </trkpt>
When I try to parse this file, I get nil in the track points.
After investigation I figured that the problem is with the dateFormat string in the DateFormatter+Extensions file.
When I change it to be "yyyy-MM-dd'T'HH:mm:ssZ"
instead of "yyyy-MM-dd'T'HH:mm:ss'Z'"
it works perfectly.
Reference for this fix:
https://stackoverflow.com/questions/41907419/ios-swift-3-convert-yyyy-mm-ddthhmmssz-format-string-to-date-object
I fixed it in my forked repo and i wonder if this is a valid fix, you can see it here:
master...Applitom:master
Please let me know if you think i can submit PR for this fix or if you think of other solution.
Thanks!
when I add it to my podfile and run pod install, I get
[!] Unable to find a specification for GpxKit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.