maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps (https://talk.maemo.org/showthread.php?t=85353)

mbanck 2012-07-19 15:36

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Wow, I take that back - I just tried again, and it gave me a crazy route which is clearly neither the shortest nor the (previously) fastest...

Obviously, you need to have traffic enabled, and maybe wait a bit for it to be processed or something.

Fastest:

http://i49.tinypic.com/ma8d1x.png

Shortest:

http://i50.tinypic.com/2nvtctk.png

Presumably optimal:
http://i49.tinypic.com/rcja02.png

Note that traffic shows that there is indeed a traffic jams on the roads picked for fastest and (the last part of) shortest

WhitP 2012-07-19 16:50

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
mbanck - nice work!

I assume you're editing the files by hand? The ability to select this in the routing menu would be excellent!

sony123 2012-07-19 17:16

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by Morpog (Post 1239819)
I reinstalled drive-qml and applied your full unstable patch.

When I choose automatic for day/night mode, it shows only a blank ui without map data. Was working well with latest full stable patch.

I can re-produce this.... will take a look when I have time.
Temporary workaround is to toggle traffic for maps to be re-drawn. :p

solstice88 2012-07-19 18:09

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by mbanck (Post 1239818)
So about traffic and taking it into account for routing:

Now I bet that the underlying code actually allows for traffic to be taken into account, my old Symbian Ovi Maps routing has an option "optimal", however RouteOptions.TYPE_OPTIMAL or RouteOptions.TYPE_OPTIMIZED does not seem to work (you get an error like "unable to assign [undefined] to int routeType" on the console).

However, when I set it to "3" manually via a property, I do not get an error. On the other hand, on some initial tests, traffic jams do not seem to get evaded either, so I am not sure what it means.

(Setting routeOptionType to 2 instead of 3 clearly selects the shortest route for me)

This is awesome! mbanck, and sony123.

Are you guys secretly working as the Nokia Drive team at Nokia? haha! Keep up the great work! :cool:

Also thanks to colin.stephane once again for putting together and updating a patch. It provided me great learning experience in reading and editing qml code. :)

Arie 2012-07-19 18:11

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by solstice88 (Post 1239894)
This is awesome! mbanck, and sony123.

Are you guys secretly working as the Nokia Drive team at Nokia? haha! Keep up the great work! :cool:

Also thanks to colin.stephane once again for putting together and updating a patch. It provided me great learning experience in reading and editing qml code. :)

No they aren't the Nokia Drive team...

As funny as this sounds it can all be done, it just has to have work done to make it work, the good news is that ovi maps/drive is not closed source on our N9's :)

rainisto 2012-07-19 21:32

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by Morpog (Post 1239819)
I reinstalled drive-qml and applied your full unstable patch.

When I choose automatic for day/night mode, it shows only a blank ui without map data. Was working well with latest full stable patch.

http://www.abload.de/img/2012-07-19_17-35-457zktw.png

Yes I can confirm this bug, unstable fails day/night mode for me too.

mbanck 2012-07-19 21:36

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by WhitP (Post 1239870)
The ability to select this in the routing menu would be excellent!

If it is indeed the right setting (I am waiting on others to confirm this), it should be possible to integrate it into the UI. Probably no further artwork would be needed for this, just an entry "Preferred Route" or so along the other routing options (like ferry etc.) with the three sub-option "shortest, fastest and optimized". Just wondering how translations should be done for that.

mbanck 2012-07-19 21:55

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by rainisto (Post 1239980)
Yes I can confirm this bug, unstable fails day/night mode for me too.

This appears to be caused by my patch in #152: http://talk.maemo.org/showpost.php?p...&postcount=152

If you revert that one, do you still get that issue?

rainisto 2012-07-19 22:08

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by mbanck (Post 1239992)
This appears to be caused by my patch in #152: http://talk.maemo.org/showpost.php?p...&postcount=152

If you revert that one, do you still get that issue?

after the revert it seems to work. Atleast automatic is night currently, don't know if it turns to day in the morning :)

mbanck 2012-07-19 22:10

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by rainisto (Post 1240000)
after the revert it seems to work. Atleast automatic is night currently, don't know if it turns to day in the morning :)

Well, not automatically if you keep the app open - but it should be set correctly when you restart it.

Back to square one...


All times are GMT. The time now is 07:30.

vBulletin® Version 3.8.8