@glandais/vcyclist-engine 6.5.2 → 6.7.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.
package/index.d.ts CHANGED
@@ -374,6 +374,25 @@ export interface ElevationCorrectionsDto {
374
374
  readonly tunnelsApplied: number;
375
375
  readonly tunnelsDropped: number;
376
376
  readonly warnings: string[];
377
+ /**
378
+ * Where the terrain was read from, in km per origin; `null` without a DEM correction.
379
+ */
380
+ readonly terrain?: TerrainProvenanceDto | null;
381
+ }
382
+
383
+ /**
384
+ * JS view of `TerrainProvenance`: the route's length read from each terrain model, in km. The
385
+ * origins are `ign-lidar-hd`, `mapterhorn-measured` (Mapterhorn in France, LiDAR-derived),
386
+ * `mapterhorn` (elsewhere, unmeasured), `other` and `none`.
387
+ */
388
+ export interface TerrainProvenanceDto {
389
+ readonly ignLidarHdKm: number;
390
+ readonly mapterhornMeasuredKm: number;
391
+ readonly mapterhornKm: number;
392
+ readonly otherKm: number;
393
+ readonly noDataKm: number;
394
+ readonly fallbackAfterErrorKm: number;
395
+ readonly failedTiles: number;
377
396
  }
378
397
 
379
398
  /**
@@ -175,23 +175,23 @@ if (typeof String.prototype.startsWith === 'undefined') {
175
175
  initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [Collection, MutableIterable]);
176
176
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
177
177
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
178
- initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [Collection, MutableIterable, KtList]);
178
+ initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [Collection, KtList, MutableIterable]);
179
179
  initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
180
180
  initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [KtMap]);
181
- initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [Collection, MutableIterable, KtSet]);
181
+ initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [Collection, KtSet, MutableIterable]);
182
182
  initMetadataForCompanion(Companion_2);
183
183
  initMetadataForInterface(RandomAccess, 'RandomAccess');
184
- initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [Collection, MutableIterable, KtList, RandomAccess]);
184
+ initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [Collection, KtList, MutableIterable, RandomAccess]);
185
185
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMap]);
186
- initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [Collection, MutableIterable, KtSet]);
186
+ initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [Collection, KtSet, MutableIterable]);
187
187
  initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
188
- initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [Collection, MutableIterable, KtSet]);
188
+ initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [Collection, KtSet, MutableIterable]);
189
189
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
190
190
  initMetadataForClass(HashMapKeysDefault$iterator$1);
191
191
  initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
192
192
  initMetadataForClass(HashMapValuesDefault$iterator$1);
193
193
  initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
194
- initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [Collection, MutableIterable, KtSet]);
194
+ initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [Collection, KtSet, MutableIterable]);
195
195
  initMetadataForCompanion(Companion_3);
196
196
  initMetadataForClass(Itr, 'Itr');
197
197
  initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
@@ -236,7 +236,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
236
236
  initMetadataForInterface(InternalMap, 'InternalMap');
237
237
  initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
238
238
  initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [KtMap]);
239
- initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [Collection, MutableIterable, KtSet]);
239
+ initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [Collection, KtSet, MutableIterable]);
240
240
  initMetadataForInterface(Continuation, 'Continuation');
241
241
  initMetadataForClass(InterceptedCoroutine, 'InterceptedCoroutine', VOID, VOID, [Continuation]);
242
242
  initMetadataForClass(CoroutineImpl, 'CoroutineImpl', VOID, InterceptedCoroutine, [Continuation]);
@@ -12103,43 +12103,44 @@ if (typeof String.prototype.startsWith === 'undefined') {
12103
12103
  _.$_$.fb = trimEnd;
12104
12104
  _.$_$.gb = trim;
12105
12105
  _.$_$.hb = uppercaseChar;
12106
- _.$_$.ib = toDuration;
12107
- _.$_$.jb = Char;
12108
- _.$_$.kb = Comparator;
12109
- _.$_$.lb = Enum;
12110
- _.$_$.mb = Error_0;
12111
- _.$_$.nb = Exception;
12112
- _.$_$.ob = IllegalArgumentException;
12113
- _.$_$.pb = IllegalStateException;
12114
- _.$_$.qb = Long;
12115
- _.$_$.rb = NumberFormatException;
12116
- _.$_$.sb = Pair;
12117
- _.$_$.tb = Result;
12118
- _.$_$.ub = RuntimeException;
12119
- _.$_$.vb = THROW_CCE;
12120
- _.$_$.wb = Triple;
12121
- _.$_$.xb = UByte;
12122
- _.$_$.yb = UInt;
12123
- _.$_$.zb = ULong;
12124
- _.$_$.ac = UShort;
12125
- _.$_$.bc = Unit;
12126
- _.$_$.cc = UnsupportedOperationException;
12127
- _.$_$.dc = addSuppressed;
12128
- _.$_$.ec = createFailure;
12129
- _.$_$.fc = ensureNotNull;
12130
- _.$_$.gc = isFinite;
12131
- _.$_$.hc = isInfinite;
12132
- _.$_$.ic = isNaN_0;
12133
- _.$_$.jc = lazy;
12134
- _.$_$.kc = noWhenBranchMatchedException;
12135
- _.$_$.lc = plus_0;
12136
- _.$_$.mc = stackTraceToString;
12137
- _.$_$.nc = toRawBits;
12138
- _.$_$.oc = toRawBits_0;
12139
- _.$_$.pc = toString_0;
12140
- _.$_$.qc = to;
12141
- _.$_$.rc = uintCompare;
12142
- _.$_$.sc = ulongToDouble;
12106
+ _.$_$.ib = ValueTimeMark;
12107
+ _.$_$.jb = toDuration;
12108
+ _.$_$.kb = Char;
12109
+ _.$_$.lb = Comparator;
12110
+ _.$_$.mb = Enum;
12111
+ _.$_$.nb = Error_0;
12112
+ _.$_$.ob = Exception;
12113
+ _.$_$.pb = IllegalArgumentException;
12114
+ _.$_$.qb = IllegalStateException;
12115
+ _.$_$.rb = Long;
12116
+ _.$_$.sb = NumberFormatException;
12117
+ _.$_$.tb = Pair;
12118
+ _.$_$.ub = Result;
12119
+ _.$_$.vb = RuntimeException;
12120
+ _.$_$.wb = THROW_CCE;
12121
+ _.$_$.xb = Triple;
12122
+ _.$_$.yb = UByte;
12123
+ _.$_$.zb = UInt;
12124
+ _.$_$.ac = ULong;
12125
+ _.$_$.bc = UShort;
12126
+ _.$_$.cc = Unit;
12127
+ _.$_$.dc = UnsupportedOperationException;
12128
+ _.$_$.ec = addSuppressed;
12129
+ _.$_$.fc = createFailure;
12130
+ _.$_$.gc = ensureNotNull;
12131
+ _.$_$.hc = isFinite;
12132
+ _.$_$.ic = isInfinite;
12133
+ _.$_$.jc = isNaN_0;
12134
+ _.$_$.kc = lazy;
12135
+ _.$_$.lc = noWhenBranchMatchedException;
12136
+ _.$_$.mc = plus_0;
12137
+ _.$_$.nc = stackTraceToString;
12138
+ _.$_$.oc = toRawBits;
12139
+ _.$_$.pc = toRawBits_0;
12140
+ _.$_$.qc = toString_0;
12141
+ _.$_$.rc = to;
12142
+ _.$_$.sc = uintCompare;
12143
+ _.$_$.tc = ulongToDouble;
12143
12144
  //endregion
12144
12145
  return _;
12145
12146
  }));