jalvinake / commutilator

0 stars 0 forks source link

Calculate driving mileage based on Google Maps driving directions #2

Open mnghost opened 8 years ago

mnghost commented 8 years ago

On a bike, you will often follow a different path than you would if you were driving (cars don't use bike paths). This could affect the would-have-driven mileage drastically. To be more accurate, we should calculate the would-have-driven distance based on driving directions between the start and end points of the trip. This could get tricky with trips that are effectively big loops. One way around it might be to set a waypoint when the Pause button (see issue 1) is used. Presumably, an actual there-and-back commute would have some stop at the other end. Use that waypoint when calculating driving directions.