Thread
:
[MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
View Single Post
sony123
2012-07-15 , 05:42
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#
138
The past week I spent some time studying the codes. Mainly, I want to see how to make the distance block display remaining time (TTD, time-to-destination). Also, there is another obvious hidden feature, detailed traffic page, that has been largely coded, but just didn't get called.
For TTD, I first tried calculating it from speed/distance. But obviously this is flawed by nature.... digging deeper I see that TTD has been calculated in the source code. It is shown in the InfoBanner (the one with a "Start Navigation" button) that appears after you select the destination. However, TTD comes from routeModel and is only derived when calculating the route. That means to update the value, we need to periodically re-calculate the route. Also flawed to me. I try searching for other variables that resemble TTD, but there are nothing explicit. I am guessing there might be hidden TTD variable in C++ side, but for the QML objects defined in C++, I have no visibility into the source code so really couldn't verify. Maybe Symbian's QML code will be useful to reveal that.
In short, I don't have a definite solution for this feature.
However, I do think the community can try uncovering the traffic detail page. I don't see the page loaded anywhere in the source code, the easiest way is probably to add an option in the setting menu, and onClicked open the traffic detail page.
Unfortunately I don't have time to look into these further, I hope someone can pick them up from here. If anyone is interested, let me know I can share more detailed info.
Last edited by sony123; 2012-07-15 at
05:45
.
Quote & Reply
|
sony123
View Public Profile
Send a private message to sony123
Find all posts by sony123