-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't save elevation correction without approving
- Loading branch information
1 parent
39cc4b0
commit dc82ed5
Showing
6 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
OsmAnd-shared/src/commonMain/kotlin/net/osmand/shared/gpx/primitives/Route.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
package net.osmand.shared.gpx.primitives | ||
|
||
class Route : GpxExtensions() { | ||
class Route : GpxExtensions { | ||
var name: String? = null | ||
var desc: String? = null | ||
var points = mutableListOf<WptPt>() | ||
|
||
constructor() | ||
|
||
constructor(other: Route) { | ||
this.name = other.name | ||
this.desc = other.desc | ||
this.points = other.points.map { WptPt(it) }.toMutableList() | ||
copyExtensions(other) | ||
} | ||
} |
11 changes: 10 additions & 1 deletion
11
OsmAnd-shared/src/commonMain/kotlin/net/osmand/shared/gpx/primitives/Track.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
package net.osmand.shared.gpx.primitives | ||
|
||
class Track : GpxExtensions() { | ||
class Track : GpxExtensions { | ||
var name: String? = null | ||
var desc: String? = null | ||
var segments = mutableListOf<TrkSegment>() | ||
var generalTrack = false | ||
|
||
constructor() | ||
|
||
constructor(other: Track) : this() { | ||
this.name = other.name | ||
this.desc = other.desc | ||
this.segments.addAll(other.segments.map { TrkSegment(it) }) | ||
this.generalTrack = other.generalTrack | ||
} | ||
|
||
fun isGeneralTrack() = generalTrack | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters