feat(voyage): calculateur de coût de trajet avec péages et carburant
Deploy HouseHub / deploy (push) Successful in 1s
Deploy HouseHub / deploy (push) Successful in 1s
- GPS database (toll_gps.json): 414 péages géocodés via Nominatim (88.5% coverage, 468 plazas) - API PHP (voyage/api.php): estimation péages + carburant via OSRM routing - Matching opérateur/entrée/sortie par proximité GPS (80km radius) - Fallback haversine si OSRM indisponible - UI holidays/detail.php: panneau "Coût du trajet" (≥2 étapes) - Inputs conso L/100km et prix carburant configurables - Affichage distance, péages, carburant, total aller - Détail par segment en accordéon - CSS: classes hol-cost-stat pour les stats chiffrées Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
535f1b7dcf
commit
6e409fb3a1
@@ -1398,3 +1398,10 @@ input[type="date"]::-webkit-calendar-picker-indicator:hover {
|
||||
#tripMap {
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
/* --- Toll cost estimator panel --- */
|
||||
.hol-cost-stat { background: var(--bg-page, #f8fafc); border: 1px solid var(--border-light, #e2e8f0); border-radius: 10px; padding: .75rem 1rem; text-align: center; }
|
||||
.hol-cost-stat-val { font-size: 1.2rem; font-weight: 700; color: var(--text-main, #0f172a); }
|
||||
.hol-cost-stat-label { font-size: .72rem; color: var(--text-muted, #64748b); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
|
||||
.hol-cost-total { border-color: var(--primary, #4361ee); }
|
||||
.hol-cost-total .hol-cost-stat-val { color: var(--primary, #4361ee); }
|
||||
|
||||
Reference in New Issue
Block a user