zwift-data 1.9.3 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -163,8 +163,8 @@ export const segments = [
163
163
  "type": "sprint",
164
164
  "world": "london",
165
165
  "distance": 0.2,
166
- "stravaSegmentId": 12749377,
167
- "stravaSegmentUrl": "https://www.strava.com/segments/12749377",
166
+ "stravaSegmentId": 12749402,
167
+ "stravaSegmentUrl": "https://www.strava.com/segments/12749402",
168
168
  "whatsOnZwiftUrl": "https://whatsonzwift.com/world/london/segment/sprint/forward"
169
169
  },
170
170
  {
@@ -173,8 +173,8 @@ export const segments = [
173
173
  "type": "sprint",
174
174
  "world": "london",
175
175
  "distance": 0.2,
176
- "stravaSegmentId": 12749402,
177
- "stravaSegmentUrl": "https://www.strava.com/segments/12749402",
176
+ "stravaSegmentId": 12749377,
177
+ "stravaSegmentUrl": "https://www.strava.com/segments/12749377",
178
178
  "whatsOnZwiftUrl": "https://whatsonzwift.com/world/london/segment/sprint/reverse"
179
179
  },
180
180
  {
@@ -573,7 +573,7 @@ export const segments = [
573
573
  "type": "climb",
574
574
  "distance": 7.4,
575
575
  "avgIncline": 6,
576
- "world": "france",
576
+ "world": "innsbruck",
577
577
  "whatsOnZwiftUrl": "https://whatsonzwift.com/world/innsbruck/segment/kom/forward",
578
578
  "climbType": "2",
579
579
  "stravaSegmentUrl": "https://www.strava.com/segments/18397965",
@@ -585,7 +585,7 @@ export const segments = [
585
585
  "type": "climb",
586
586
  "distance": 5.79,
587
587
  "avgIncline": 8,
588
- "world": "france",
588
+ "world": "innsbruck",
589
589
  "whatsOnZwiftUrl": "https://whatsonzwift.com/world/innsbruck/segment/kom/reverse",
590
590
  "climbType": "2",
591
591
  "stravaSegmentUrl": "https://www.strava.com/segments/18397927",
@@ -84,9 +84,17 @@ export interface Route {
84
84
  */
85
85
  experience?: number;
86
86
  /**
87
- * Official segments on the route sorted by appearance. Segments are listed multiple times if they are ridden multiple times.
87
+ * Segments on the route. Segments are listed only listed once if they appear multiple times.
88
88
  */
89
89
  segments: ReadonlyArray<string>;
90
+ /**
91
+ * Segments on the route sorted by appearance including exact position. Segments may occur multiple times if they are ridden multiple times.
92
+ */
93
+ segmentsOnRoute: ReadonlyArray<{
94
+ from: number;
95
+ to: number;
96
+ segment: string;
97
+ }>;
90
98
  /**
91
99
  * Id of the corresponding strava segment
92
100
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zwift-data",
3
- "version": "1.9.3",
3
+ "version": "1.10.0",
4
4
  "description": "Data about Zwift worlds, routes and segments",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -31,6 +31,7 @@
31
31
  "@semantic-release/changelog": "5.0.1",
32
32
  "@semantic-release/git": "9.0.0",
33
33
  "@tsconfig/recommended": "1.0.1",
34
+ "@turf/turf": "6.5.0",
34
35
  "@types/jest": "26.0.23",
35
36
  "@types/node": "15.6.1",
36
37
  "jest": "27.0.3",