[MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
View Single Post
07-15-2012 , 04:13 PM
Posts: 48 | Thanked: 89 times | Joined on Jul 2012
Hah, so I dumped the routingModel and guidanceModel structures, and it turns out that guidanceModel apparently has a member which appears to be exactly what we want and gets updated when DestinationDistance changes, namels timeToArrival (we did not find it earlier because it is not referenced in the QML source).
New patch (supersedes the other one):
With this patch the duration value updates, however, it is raining outside so I have not tested whether it really works correctly, feedback welcome. It could well be that timeToArrival is broken somewhat and therefore was not exposed in the user interface before.
The user interface has not changed (see last screenshot), I think it would be more elegant to make the distance/duration widget be a button which would switch between the two, but I won't have any more time to work on this, hopefully somebody else can pick it up.
Quote & Reply
The Following 11 Users Say Thank You to mbanck For This Useful Post:
View Public Profile
Send a private message to mbanck
Find all posts by mbanck