From 5549c8b3c1a898ceefac54b2d2941e9661d58ddb Mon Sep 17 00:00:00 2001 From: jensMF Date: Sun, 17 Jan 2021 20:54:00 +0100 Subject: [PATCH] Added changes from #10542 and #10587 --- .../osmand-file-formats/osmand-gpx.md | 123 +++++++++--------- 1 file changed, 62 insertions(+), 61 deletions(-) diff --git a/content/development/osmand-file-formats/osmand-gpx.md b/content/development/osmand-file-formats/osmand-gpx.md index bd3d0f57e..4823ccf99 100644 --- a/content/development/osmand-file-formats/osmand-gpx.md +++ b/content/development/osmand-file-formats/osmand-gpx.md @@ -13,22 +13,22 @@ The following parameters are used to customize the appearance of a track on the #### Parameters |Name|Spec and Purpose| |:--------|:---------------| -|[show_arrows]|Bool. "true" or "false". Show / hide arrows along the path line.| -|[width]|String. "thin", "medium", "bold" or number 1-24. Width of the track line on the map. The thin, medium, and bold are style depended values (should be defined as currentTrackWidth attribute).| -|[color]|String. Hex value "#AARRGGBB" or "#RRGGBB". Color of a track line on the map.| -|[split_type]|String. "no_split", "distance" or "time". Split type for a track.| -|[split_interval]|Double. Split interval for a track. Distance (meters), time (seconds).| +|[osmand:show_arrows]|Bool. "true" or "false". Show / hide arrows along the path line.| +|[osmand:width]|String. "thin", "medium", "bold" or number 1-24. Width of the track line on the map. The thin, medium, and bold are style depended values (should be defined as currentTrackWidth attribute).| +|[osmand:color]|String. Hex value "#AARRGGBB" or "#RRGGBB". Color of a track line on the map.| +|[osmand:split_type]|String. "no_split", "distance" or "time". Split type for a track.| +|[osmand:split_interval]|Double. Split interval for a track. Distance (meters), time (seconds).| #### Example: ```xml - + ... - true - #4e4eff - distance - 2000.0 - bold + true + #4e4eff + distance + 2000.0 + bold ``` @@ -44,8 +44,8 @@ Written to a gpx file while recording a track. 3 - 273 - 5.02 + 273 + 5.02 ``` @@ -57,6 +57,18 @@ A gpx file may contain several routes. Each of them is contained in a specific s **Plan a route** also adds one (or several, in accordance with the number of contained separate segments / tracks) **rte** blocks to the gpx file, containing route key points (**rtept**). #### Gpx structure: ```xml +// List of intermediate route points. If there are multiple routes, the order of the rte list matches the order of the route segments. + + + // For routes built with the "Plan route", the parameters of key points are saved. + + // Route profile type for next segment (car, bicycle, pedestrian, etc.). + ... + // The index of the point in the gpx segment that corresponds to the first point of the calculated route for this segment. + ... + + + // List of segment points. The order of the points corresponds to the order and length of the route segments (). @@ -64,38 +76,53 @@ A gpx file may contain several routes. Each of them is contained in a specific s // List of route segments - + - + // Properties of segments included in the route. // This data is taken from offline maps during the initial construction of a route. - + - + - -// List of intermediate route points. If there are multiple routes, the order of the rte list matches the order of the route segments. - - - // For routes built with the "Plan route", the parameters of key points are saved. - - // Route profile type for next segment (car, bicycle, pedestrian, etc.). - ... - // The index of the point in the gpx segment that corresponds to the first point of the calculated route for this segment. - ... - - - ``` #### Example: ```xml - + Fri 06 Nov 2020 + + + + pedestrian + 0 + + + + + pedestrian + 24 + + + + + pedestrian + 89 + + + + + pedestrian + 121 + 121 + 121 + + + Fri 06 Nov 2020 @@ -118,50 +145,24 @@ A gpx file may contain several routes. Each of them is contained in a specific s .... - + ... - - + + ... - + - - - - pedestrian - 0 - - - - - pedestrian - 24 - - - - - pedestrian - 89 - - - - - pedestrian - 121 - - - ```