Closed yangyang5214 closed 8 months ago
a gpx example
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="https://github.com/tkrajina/gpxgo">
<metadata>
<author></author>
</metadata>
<trk>
<trkseg>
<trkpt lat="18.440088272094727" lon="110.0">
<ele>9.199999809265137</ele>
<time>2024-01-08T02:26:21Z</time>
</trkpt>
</trkseg>
</trk>
</gpx>
From your git history commit, I know that you are dealing with the case
0.000056
But, when
lon="110.0"
, An unexpected error will occur110.0
changed to11
so, should use
strings.TrimSuffix
, notstrings.TrimRight