![]() |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
I use the patch methodes, and it says it's all done, but nothing's happen, the map colors button still day and night, and LA traffic doesn't show up.
Updated: Sorry, wrong patches, it's all working by now :) |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
~ # apt-get install -y --reinstall nokia-drive-
qml && sync && patch -p0 -i Patch-to-enable-tra ffic-and-day-night-autoswitch-in-drive-for-N9-P R1.3.diff Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Пакеты, которые будут обновлены: nokia-drive-qml обновлено 1, установлено 0 новых пакетов, переустановлено 1 переустановлено, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 1,817kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 0B. Получено:1 https://downloads.maemo.nokia.com ./ nokia-drive-qml 2.0.8+0m8 [1,817kB] Получено 1,817kБ за 1с (1,320kБ/c) (Чтение базы данных ... на данный момент установлено 50599 файлов и каталогов.) Подготовка к замене пакета nokia-drive-qml 2.0.8+0m8 (используется файл .../nokia-drive-qml_2.0.8+0m8_armel.deb) ... Распаковывается замена для пакета nokia-drive-qml ... aegis-installing nokia-drive-qml (from 'com.nokia.maemo') Обрабатываются триггеры для desktop-file-utils... Обрабатываются триггеры для applauncherd-launcher ... Настраивается пакет nokia-drive-qml (2.0.8+0m8) ... Updating desktop entries... Done sh: patch: not found ~ # nothing happend, there is no Traffic on the map. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Code:
routeType: RouteOptions.TYPE_FASTEST Code:
routeType: RouteOptions.3 Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
~ # dpkg -i patch_2.6-2+maemo7+0m6_armel.deb Aegis rejecting patch_2.6-2+maemo7+0m6_armel.deb: Could not open debian archive aegis aborting dpkg -- all listed package files rejected Compilation failed in require. ~ # |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
devel-su rootme cd home/user/MyDocs/Downloads dpkg -i patch_2.6*.deb this worked for me. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
@taviman
Thanks! That worked for me too! |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
I tried the different route option settings today. Shortest and fastest gave me distinctly different routes. But I am not sure about 3, it gave me the same route as fastest, when the traffic on the route was red.
I also experimented with adding this route option to AppSettingsModel and exposed it to setting menu. But unsurprisingly, only pre-defined variables (in settingManager) are allowed so I couldn't use the set method to store the route option. I then added it as a property to AppSettingsModel, but like the comments in the code suggested, property in this QtObject is not reliable and I couldn't change the property either. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Today I also took a look at Maps' qml codes under /usr/share/maps/qml, hoping I could find something interesting.
But the only thing I found was a setting to enable automatic 2D/3D transition (e.g. zoom out becomes 2D, zoom in becomes 3D), but the implementation wasn't robust. I didn't see any TODO and traffic-related info. The components implemented in QML are limited, most of the meat are hidden under C++. Maps uses a private MapViewer element for displaying the map, and the codes don't reveal much of what features this object supports.... Overall, the qml codes for Maps is kind of messy compared with Drive's. The only things I changed so far are exposing the auto 2D/3D feature (not worth it) and get rid of the Analytic element... |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
If so, any chance of getting hold of their QML files and see if we can sneak any features across ;) |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
There are some references in the Maps QML about favorites, but I could not find a place where the ordering was set or explicitly reordered on a quick look. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
I see that the time to distance is blank (- hr) when the distance is over an hour drive, once its below an hour it starts to show 58 min and such.
Using unstable patch. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Or maybe this isn't such a big issue after all (but it is sure annoying me). |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Managed to get traffic shown up in Maps. However, traffic doesn't automatically load when panning the map, either the codes don't have it or I haven't found the codes responsible for this yet.
The changes are: make traffic toggle visible in MapSettingsUI.qml, fix un-comment traffic setting loading/storing in MapApi.js, and fix the wrong function argument for trafficObject.requestTrafficAt() in MapApi.js (original code doesn't have 2nd argument for requestTrafficAt(), the argument is radius in km btw). By doing these, traffic show up, just doesn't auto-refresh when panning. https://dl.dropbox.com/u/54692247/20...9_01-50-50.png |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
I have tried to understand why and see if there is any workaround, but decided I should give up. It's better to give users options than to perfect a feature that isn't implemented by me. Again, I don't have a lot of time to clean up what I modified on device. But I hope I can get the diff done this week....... |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] Enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Here it is the Map traffic patch for testing:
Maps traffic patch unstable I forgot to backup the original files so pulled the ones from N950 for diff. As a result, please apply it with caution and at your own risk. Make sure you backup the following folder first! /usr/lib/qt4/imports/ovi/connector/map I don't know how to restore Maps in case anything failed. I saw two Maps-related packages, maps and maps-guard, maybe try reinstalling both would help. (<- needs verifying) To activate traffic, click the setting button on lower right map view (the one you click to select 'public transport', '3d mode', etc.) and toggle 'traffic'. Traffic only gets fetched when map center changes beyond certain threshold, so traffic might not show up immediately. During testing I noticed a few tricks to help traffic shows up: 1. Panning the Maps randomly, for example, drawing circles. Maybe this forces maps redraw.... 2. Zooming in/out. 3. Swipe out of Maps then back can help Maps refreshes the map view and hence displays traffic. For detailed changes, the original code makes traffic request whenever map center shifts beyond 5000 (I believe it means 5km). During testing, I found that requesting traffic frequently doesn't necessarily help displaying traffic, so I referenced Drive's code and add a QML Timer to reduce the number of requests made while panning the map. I also tweaked the triggering threshold and the request radius... the tweaking is in no way scientific, but I settled on (7km, 30km). FYI, Drive uses (40km, 50km). I did try Drive's setting, but feel it doesn't work as well. Seems to me Maps needs more requesting, but might just be my imagination. Anyway, I encourage people to try other combinations, as well as the interval for the traffic timer. By the way, if you want to try playing with the parameters, you can un-comment the 'trafficInfo' Text element in MapViewer.qml and the other lines containing trafficInfo. It will display debug messages directly on the top left corner of map view and makes it easier for you to tell when traffic request is sent. Please post feedback if you can, thanks and enjoy! |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Maps for PR1.2/1.3
Just to clarify, the Maps patch is currently not in colin's all-in-one unstable patch, but should be integrate into it once it matures.
|
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Just got round to trying the traffic drive. In symbian when you click on an incident, i.e. the triangle icon, it brings up a description of it. Is this possible?
|
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Quote:
In short, possible but not easy. |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
sony123 if you want to re-install maps just do apt-get install maps --reinstall
you don't need to install maps-guard... |
Re: [MOD] Enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
How to apply your patch because i tried several methods and it doesn't work. Thank you in advance ;) |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
So based on posts in this thread, Drive/Maps doesn't know how to reroute based on traffic condition? /sadpanda
Also, is there any site with a list of countries that have traffic information on Nokia Maps/Drive? |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Quote:
Quote:
:D |
Re: [MOD] Enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
I have re-uploaded the patch, please download it and put it in /home/user/MyDocs Launch terminal, become root, then type: patch -p0 -i /home/user/MyDocs/maps.patch (That's -p[zero] not p.o.) |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Quote:
|
Re: [MOD] Enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
I forgot -i , my bad dude -_- Thanks ;) |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
1 Attachment(s)
The same patch would not work. Did everything by hand. If you need the corrected files - in the attachment.
Unzip the file and throw 4 files with the replacement of /usr/lib/qt4/imports/ovi/connector/map/ |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
works for me; shows traffic in drive and in maps as well
|
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Quote:
I haven't verified it yet so don't get too excited :D |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Here's hoping for the traffic re-routing!
The traffic in maps is very handy - thanks.. |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Curious - at least locally the traffic info in Nokia maps and drive doesn't match the Nokia Maps website.
Some stuff on the website doesn't show up at all but the construction on the main highway is shown in different places. I'm not going for a drive just now to find out which is right! |
All times are GMT. The time now is 12:09. |
vBulletin® Version 3.8.8