smooth_vehicle_tracker 0.1.0+1 copy "smooth_vehicle_tracker: ^0.1.0+1" to clipboard
smooth_vehicle_tracker: ^0.1.0+1 copied to clipboard

retracted

Dead-reckoning and polyline-based vehicle tracking for Flutter maps (Google Maps): sparse SSE updates, route snapping, smoothed heading.

smooth_vehicle_tracker #

Dead reckoning and polyline-based vehicle tracking for Flutter maps (e.g. Google Maps): smooth motion between sparse position updates (SSE), route snapping, predictive heading, and soft correction without teleporting the marker.

Install #

dependencies:
  smooth_vehicle_tracker: ^0.1.0+1

Or from Git:

dependencies:
  smooth_vehicle_tracker:
    git:
      url: https://github.com/dorsmic/smooth_vehicle_tracker.git
      ref: main

Package page: pub.dev/packages/smooth_vehicle_tracker (après première publication).

Publier sur pub.dev (maintainer) #

  1. Compte pub.dev et publisher vérifié (ex. dorsmic) si tu publies au nom d’une org — voir documentation des publishers.
  2. Connexion : dart pub login (ouvre le navigateur / token OAuth).
  3. Depuis ce dossier :
cd packages/smooth_vehicle_tracker
dart pub publish --dry-run   # vérification
dart pub publish             # publication (confirmation y/N)

Ou : ./tool/publish_pubdev.sh

  1. Après succès, dans l’app rmobility tu peux utiliser smooth_vehicle_tracker: ^0.1.0+1 à la place de path / git.

Usage #

final engine = VehicleTrackingEngine(
  config: const VehicleTrackingConfig(),
  initialPosition: initialLatLng,
);

// On each server position (SSE):
engine.onSsePosition(newSseLatLng, polyline: routePolyline);

// On a short timer (e.g. same as VehicleTrackingConfig.tickInterval conceptually):
final next = engine.tick(polyline: routePolyline);

final markerPos = next.renderPosition;
final markerBearing = next.bearing;

Use next.trackPosition for camera / logic and next.renderPosition for the marker (includes a small forward offset when configured).

Repository #

https://github.com/dorsmic/smooth_vehicle_tracker

Remote Git en HTTPS : https://github.com/dorsmic/smooth_vehicle_tracker.git

Première publication (dépôt vide sur GitHub) #

Le dépôt peut rester vide au début (état actuel possible). Il faut un premier push pour que flutter pub get avec dépendance git fonctionne.

Sur ta machine (authentification GitHub : navigateur, Personal Access Token, ou GitHub CLI gh auth login) :

cd packages/smooth_vehicle_tracker
./tool/force_push_github.sh

Le script utilise git remote add origin https://github.com/dorsmic/smooth_vehicle_tracker.git puis git push -u origin main --force.

Équivalent des instructions GitHub (HTTPS) #

git init
git branch -M main
git remote add origin https://github.com/dorsmic/smooth_vehicle_tracker.git
git add -A
git commit -m "Release smooth_vehicle_tracker"
git push -u origin main --force

Si tu avais seulement le README créé depuis le site GitHub, le --force remplace l’historique par le contenu du package (voulu).

License #

MIT (see LICENSE).

1
likes
0
points
103
downloads

Publisher

unverified uploader

Weekly Downloads

Dead-reckoning and polyline-based vehicle tracking for Flutter maps (Google Maps): sparse SSE updates, route snapping, smoothed heading.

Repository (GitHub)
View/report issues

Topics

#maps #geolocation #google-maps-flutter

License

unknown (license)

Dependencies

flutter, google_maps_flutter

More

Packages that depend on smooth_vehicle_tracker