feat(routing): Dynamic traffic delay & descent-aware mechanical braking advice
This commit is contained in:
@@ -440,10 +440,15 @@ function App() {
|
||||
<span>⛽ وقود مقدر: <strong style={{ color: '#f8fafc' }}>{routeData.ecoMetrics.estimatedGasolineLiters} لتر</strong></span>
|
||||
<span>💰 تكلفة تقديرية: <strong style={{ color: '#4ade80' }}>{routeData.ecoMetrics.estimatedCostJOD} د.أ</strong></span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', color: '#94a3b8' }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', color: '#94a3b8', marginBottom: 4 }}>
|
||||
<span>⚡ استهلاك EV: <strong style={{ color: '#38bdf8' }}>{routeData.ecoMetrics.estimatedEvKWh} kWh</strong></span>
|
||||
<span>🌱 انبعاثات الكربون: <strong style={{ color: '#94a3b8' }}>{routeData.ecoMetrics.co2Kg} كغم</strong></span>
|
||||
</div>
|
||||
{routeData.ecoMetrics.mechanicalAdvice && (
|
||||
<div style={{ marginTop: 6, padding: '5px 8px', borderRadius: 6, background: 'rgba(56, 189, 248, 0.1)', color: '#bae6fd', fontSize: '0.74rem' }}>
|
||||
💡 {routeData.ecoMetrics.mechanicalAdvice}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user