@wemap/providers 12.7.0 → 12.7.2

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/dist/index.mjs CHANGED
@@ -2823,11 +2823,11 @@ const _MapMatchingHandler = class _MapMatchingHandler extends Provider {
2823
2823
  return this.enabled && this.graph;
2824
2824
  }
2825
2825
  _notifyPositionFromItineraryInput(itinerary) {
2826
- if (!this._useItineraryStartAsPosition || itinerary.from) {
2826
+ if (!this._useItineraryStartAsPosition || !itinerary.origin) {
2827
2827
  return;
2828
2828
  }
2829
2829
  const lastPosition = AbsolutePositionProvider$1.lastEvent || null;
2830
- const newPosition = UserPosition.fromCoordinates(itinerary.from);
2830
+ const newPosition = UserPosition.fromCoordinates(itinerary.origin);
2831
2831
  if (lastPosition) {
2832
2832
  newPosition.alt = lastPosition.alt;
2833
2833
  newPosition.time = lastPosition.time;