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)

Iryus 2012-07-18 15:34

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
-sh: patch: Operation not permitted etc etc in root user

Iryus 2012-07-18 21:20

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
I found how to do that thank you for these patches colin.stephane :D

colin.stephane 2012-07-19 13:07

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

Glad to see you have been patient, so, sony123 ask me to give you the most awaited patch to be able to switch from Distance to Time To Destination ...

I have tested successfully during mid time to go restaurant, it worked like expected.

As usual, I have updated my full patch in section Unstable ...

Please report it worked properly on your device then I can remove the Unstable section to keep only one full patch as Stable.

Also, don't forget to thanks :

- sony123.
- nieldk.
- Arie.
- mbanck.
- nailwood.
- jd4200.

Because nothing can be done without all these guys working on there free time to debug, fix & enhance Nokia Drive application for our precious ...

A++

godofwar424 2012-07-19 13:23

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

Originally Posted by colin.stephane (Post 1239755)
Hi all,

Glad to see you have been patient, so, sony123 ask me to give you the most awaited patch to be able to switch from Distance to Time To Destination ...

I have tested successfully during mid time to go restaurant, it worked like expected.

As usual, I have updated my full patch in section Unstable ...

Please report it worked properly on your device then I can remove the Unstable section to keep only one full patch as Stable.

Also, don't forget to thanks :

- sony123.
- nieldk.
- Arie.
- mbanck.
- nailwood.
- jd4200.

Because nothing can be done without all these guys working on there free time to debug, fix & enhance Nokia Drive application for our precious ...

A++

Can you please give the actual changes so that I can do this without using the patch. I prefer doing it manually.

Or just make a patch that ONLY contains this TTD fix.

colin.stephane 2012-07-19 13:36

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

Originally Posted by godofwar424 (Post 1239765)
Can you please give the actual changes so that I can do this without using the patch. I prefer doing it manually.

Or just make a patch that ONLY contains this TTD fix.

Since sony123 and I have troubles to apply the TTD patch on my side (we not find why), then we manage the thing another way.

He sent me the full tree of '/usr/lib/drive-qml/' then I made a script to automatically track change between his work and the original files, and generate the unified diff file ...

So, I have no differential patch to provide.

By the way even reviewing the full patch by yourself doesn't require more than 5 minutes ...

A++

jimthefly 2012-07-19 13:46

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

Originally Posted by colin.stephane (Post 1239755)
Hi all,

Glad to see you have been patient, so, sony123 ask me to give you the most awaited patch to be able to switch from Distance to Time To Destination ...

I have tested successfully during mid time to go restaurant, it worked like expected.

As usual, I have updated my full patch in section Unstable ...

Please report it worked properly on your device then I can remove the Unstable section to keep only one full patch as Stable.

Also, don't forget to thanks :

- sony123.
- nieldk.
- Arie.
- mbanck.
- nailwood.
- jd4200.

Because nothing can be done without all these guys working on there free time to debug, fix & enhance Nokia Drive application for our precious ...

A++

Hi colin.stephane,

i'll be able to test during the weekend long and hard.

Thanks at all for the hard and good work.

mbanck 2012-07-19 13:50

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

Originally Posted by colin.stephane (Post 1239755)
Hi all,

Glad to see you have been patient, so, sony123 ask me to give you the most awaited patch to be able to switch from Distance to Time To Destination ...

I have tested successfully during mid time to go restaurant, it worked like expected.

Works great for me, many thanks to both of you!

godofwar424 2012-07-19 14:16

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

Originally Posted by colin.stephane (Post 1239768)
Since sony123 and I have troubles to apply the TTD patch on my side (we not find why), then we manage the thing another way.

He sent me the full tree of '/usr/lib/drive-qml/' then I made a script to automatically track change between his work and the original files, and generate the unified diff file ...

So, I have no differential patch to provide.

By the way even reviewing the full patch by yourself doesn't require more than 5 minutes ...

A++

Yeah I did look at it manually, the thing I wanted to know, was what files it touches just for TTD.

mbanck 2012-07-19 15:29

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
So about traffic and taking it into account for routing:

in models/RoutingModel.qml, line 44 reads:

routeType: RouteOptions.TYPE_FASTEST

RouteOptions.TYPE_FASTEST translates to "1" if you print it out on the console. If I change that to

routeType: RouteOptions.TYPE_SHORTEST

that translates to "2", and I actually get the shortest route (will dismiss highways etc.).

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.

But if people want to test around, here is a patch: http://paste.debian.net/download/179798

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

Morpog 2012-07-19 15:29

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
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


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

vBulletin® Version 3.8.8