jannisborn / greentastic_backend

An iOS app for transportation comparison
MIT License
6 stars 1 forks source link

Correct pace of ebikes and scooter #5

Closed jannisborn closed 4 years ago

jannisborn commented 4 years ago

Atm, ebikes, scooters and bikes all have the same duration. Scooters usually don't go above 20 km/h, so setting calculating duration based on an average pace of e.g. 16 kmh may suffice, even inside cities.

Likewise for ebikes, we could set the average pace to 23 and compute duration from that. The exact numbers should be tested but I think it's better than making it generally X% faster since electric vehicles are rather independent from elevation profile (in contrast to bikes).

NinaWie commented 4 years ago

One function for each transportation - call functions for each step in compute_scores.py (e.g. compute_scores_ebike(dur, dist))