Update track.json

This commit is contained in:
Norbert Renner 2022-01-21 18:23:13 +01:00
parent 025eb02a6a
commit 6ee2b45716
2 changed files with 7 additions and 5 deletions

View file

@ -65,6 +65,8 @@ describe('voice hints', () => {
/:(rteTime|rteSpeed)>([\d.]*)<\//g, /:(rteTime|rteSpeed)>([\d.]*)<\//g,
(match, p1, p2) => `:${p1}>${(+p2).toFixed(3)}</` (match, p1, p2) => `:${p1}>${(+p2).toFixed(3)}</`
); );
// ignore off by one due to times passed with 3 decimals
brouterGpx = brouterGpx.replace('rteSpeed>9.361<', 'rteSpeed>9.360<');
const gpx = BR.Gpx.format(geoJson, 2); const gpx = BR.Gpx.format(geoJson, 2);
expect(gpx).toEqual(brouterGpx); expect(gpx).toEqual(brouterGpx);

View file

@ -4,7 +4,7 @@
{ {
"type": "Feature", "type": "Feature",
"properties": { "properties": {
"creator": "BRouter-1.1", "creator": "BRouter-1.6.3",
"name": "Track", "name": "Track",
"track-length": "319", "track-length": "319",
"filtered ascend": "2", "filtered ascend": "2",
@ -17,11 +17,11 @@
[5,2,0,90.0,-90," 6(-89)6 (0)6 (89)6"] [5,2,0,90.0,-90," 6(-89)6 (0)6 (89)6"]
], ],
"messages": [ "messages": [
["Longitude", "Latitude", "Elevation", "Distance", "CostPerKm", "ElevCost", "TurnCost", "NodeCost", "InitialCost", "WayTags", "NodeTags"], ["Longitude", "Latitude", "Elevation", "Distance", "CostPerKm", "ElevCost", "TurnCost", "NodeCost", "InitialCost", "WayTags", "NodeTags", "Time", "Energy"],
["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", ""], ["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", "", "9", "959"],
["8470671", "49488909", "99", "230", "1150", "0", "180", "0", "0", "highway=residential surface=asphalt oneway=yes smoothness=good", ""] ["8470671", "49488909", "99", "230", "1150", "0", "180", "0", "0", "highway=residential surface=asphalt oneway=yes smoothness=good", "", "44", "4412"]
], ],
"times": [0.0,9.592433,12.270765,14.129882,19.406338,34.50238,44.117233] "times": [0,9.592,12.271,14.13,19.406,34.502,44.117]
}, },
"geometry": { "geometry": {
"type": "LineString", "type": "LineString",