Format route points as waypoints

This commit is contained in:
Norbert Renner 2021-03-18 18:04:57 +01:00
parent 449a24e5ce
commit 7fc2f6bee5
8 changed files with 380 additions and 19 deletions

View file

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- track-length = 388 filtered ascend = 1 plain-ascend = 0 cost=703 energy=.0kwh time=44s -->
<gpx
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"
creator="BRouter-1.6.1" version="1.1">
<wpt lon="8.468340" lat="49.488794"><name>right</name><sym>right</sym><type>Right</type></wpt>
<wpt lon="8.469971" lat="49.488151"><name>left</name><sym>left</sym><type>Left</type></wpt>
<wpt lon="8.470671" lat="49.488909"><name>left</name><sym>left</sym><type>Left</type></wpt>
<wpt lon="8.467712" lat="49.488117">
<name>from</name>
<type>from</type>
</wpt>
<wpt lon="8.469354" lat="49.488394">
<name>via1</name>
<type>via</type>
</wpt>
<wpt lon="8.470556" lat="49.488946">
<name>via2</name>
<type>via</type>
</wpt>
<wpt lon="8.469982" lat="49.489176">
<name>to</name>
<type>to</type>
</wpt>
<trk>
<name>waypoints + 5-gpsies</name>
<trkseg>
<trkpt lon="8.467714" lat="49.488115"><ele>101.5</ele></trkpt>
<trkpt lon="8.468340" lat="49.488794"><ele>101.5</ele></trkpt>
<trkpt lon="8.468586" lat="49.488698"><ele>101.5</ele></trkpt>
<trkpt lon="8.468743" lat="49.488636"><ele>101.5</ele></trkpt>
<trkpt lon="8.469161" lat="49.488473"><ele>101.75</ele></trkpt>
<trkpt lon="8.469355" lat="49.488395"><ele>102.0</ele></trkpt>
<trkpt lon="8.469971" lat="49.488151"><ele>103.5</ele></trkpt>
<trkpt lon="8.470671" lat="49.488909"><ele>99.5</ele></trkpt>
<trkpt lon="8.470561" lat="49.488951"><ele>99.5</ele></trkpt>
<trkpt lon="8.469984" lat="49.489178"><ele>100.0</ele></trkpt>
</trkseg>
</trk>
</gpx>

View file

@ -0,0 +1,231 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"creator": "BRouter-1.1",
"name": "Track",
"track-length": "388",
"filtered ascend": "1",
"plain-ascend": "0",
"total-time": "44",
"total-energy": "4420",
"cost": "703",
"voicehints": [
[
1,
5,
0,
88,
89
],
[
6,
2,
0,
99,
-90
],
[
7,
2,
0,
10,
-90
]
],
"messages": [
[
"Longitude",
"Latitude",
"Elevation",
"Distance",
"CostPerKm",
"ElevCost",
"TurnCost",
"NodeCost",
"InitialCost",
"WayTags",
"NodeTags"
],
[
"8468340",
"49488794",
"101",
"89",
"1000",
"0",
"0",
"0",
"0",
"highway=residential surface=asphalt cycleway=lane oneway=yes lcn=yes smoothness=good route_bicycle_icn=yes route_bicycle_ncn=yes route_bicycle_rcn=yes",
""
],
[
"8469971",
"49488151",
"102",
"88",
"1150",
"0",
"90",
"0",
"0",
"highway=residential surface=asphalt oneway=yes smoothness=good",
""
],
[
"8469852",
"49489230",
"99",
"162",
"1150",
"0",
"180",
"0",
"0",
"highway=residential surface=asphalt oneway=yes smoothness=good",
""
],
[
"8469852",
"49489230",
"100",
"49",
"1150",
"0",
"0",
"0",
"0",
"highway=residential surface=asphalt oneway=yes smoothness=good",
""
]
],
"times": [
0,
9.592,
12.271,
14.13,
19.406,
22.134,
28.832,
37.817,
38.938,
44.217
]
},
"geometry": {
"type": "LineString",
"coordinates": [
[
8.467714,
49.488115,
101.5
],
[
8.46834,
49.488794,
101.5
],
[
8.468586,
49.488698,
101.5
],
[
8.468743,
49.488636,
101.5
],
[
8.469161,
49.488473,
101.75
],
[
8.469355,
49.488395,
102
],
[
8.469971,
49.488151,
103.5
],
[
8.470671,
49.488909,
99.5
],
[
8.470561,
49.488951,
99.5
],
[
8.469984,
49.489178,
100
]
]
}
},
{
"type": "Feature",
"properties": {
"name": "from",
"type": "from"
},
"geometry": {
"type": "Point",
"coordinates": [
8.467712,
49.488117
]
}
},
{
"type": "Feature",
"properties": {
"name": "via1",
"type": "via"
},
"geometry": {
"type": "Point",
"coordinates": [
8.469354,
49.488394
]
}
},
{
"type": "Feature",
"properties": {
"name": "via2",
"type": "via"
},
"geometry": {
"type": "Point",
"coordinates": [
8.470556,
49.488946
]
}
},
{
"type": "Feature",
"properties": {
"name": "to",
"type": "to"
},
"geometry": {
"type": "Point",
"coordinates": [
8.469982,
49.489176
]
}
}
]
}