The Following 3 Users Say Thank You to MartinK For This Useful Post: | ||
|
2010-11-08
, 19:19
|
|
Posts: 1,455 |
Thanked: 3,309 times |
Joined on Dec 2009
@ Rochester, NY
|
#292
|
I get them from the GoogleMaps module as a nested python dictionary. IMO, it would be quite easy to serialize it to and from a file. But I'd rather integrate it with the current tracklogs, than add a third way to represent a track to modRana
Well, that sounds very interesting !
I already see quite a few things to do with it:
[*]generate tiles with transparent background for using as overlay - (I have actually yet to see an OSS tile layer with total transparency [/LIST]
The Following User Says Thank You to woody14619 For This Useful Post: | ||
|
2010-11-08
, 20:03
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#293
|
The Following User Says Thank You to 白い熊 For This Useful Post: | ||
|
2010-11-09
, 07:49
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#294
|
The Following User Says Thank You to 白い熊 For This Useful Post: | ||
|
2010-11-09
, 08:32
|
Posts: 650 |
Thanked: 497 times |
Joined on Oct 2008
@ Ghent, Belgium
|
#295
|
Please don't take this as criticism, Martin. I think you are doing the greatest job and this app kicks ***.
Edit: BTW, these three stars were added automatically by the system, replacing the text I typed, WTF?
The Following User Says Thank You to petur For This Useful Post: | ||
|
2010-11-09
, 08:47
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#296
|
The Following User Says Thank You to 白い熊 For This Useful Post: | ||
|
2010-11-10
, 11:56
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#297
|
How hot would it be to be able to actually use that "send to phone" button on Google.
The problem isn't in the tile generation, but rather the overhead in the search for objects in the spacial area. (Said another way, drawing is fast, querying a spacial area on a database with millions of objects isn't.) One optimization I've been working on is a way to pre-feed it a shape file for caching that data for use in subsequent requests. That's handy, since it can then create a sub-set of the data it needs for a given segment and use that for future requests without doing another request. For modRana, you could make a crude shape file for route (say route +/-2k) and use that to speed up the process quite a bit.
Even if it's too slow to do real time, it could do things like filling gaps the existing tile cache for a route. With a little adaptation, it could take the route shape, find existing/missing tiles, and generate just the missing ones. If you have even partial coverage, it may be able to keep up that way at least.
The hard part is getting/massaging the vector data into a format that it likes. And vector data isn't always small... the global vector map I'm working with right now is near 7G. Nothing compared to tiles, I know.. but...
|
2010-11-10
, 11:57
|
Posts: 75 |
Thanked: 4 times |
Joined on Jan 2010
|
#298
|
|
2010-11-10
, 12:20
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#299
|
The biggest problem was the GUI rotation is not working.
...
Am I right in assuming that this feature is not implemented yet and just has an options menu entry prematurely. Or is there a problem?
Further testing, I think modrana has a serious problem with rerouting.
When routing is running and there's the blue box saying 'tap me to reroute', I'd tap it, it says rerouting, then it seems a new route is retrieved from google - not sure about it, as it was the same route I was following - but then the interface in stuck, i.e. the car position is updated on the map, but the display doesn't react to touches...
The N900 doesn't freeze though, as I could close modrana via the X button in the corner.
Also, maybe there is some problem with routing: i.e. I routed to some point, I was already driving there, as I know where it's at. I was on this long, many km stretch without turns. After I got on it, hit 'start navigation' from the closest point which was some 200 m already past, as I was on the road, and now as I kept driving, the blue box kept showing me next turn, which was the first turn, i.e. to get on the longest stretch of the road, and the distance to it was growing, i.e. ran up into several km.
So maybe it should not be closest point to start nav from, but closest next point, as then as in this case it can lead to strange results.
Finally, I think if you route to somewhere, navigation should be started by default. i.e. you shouldn't have to press the option to start navigation.
Hmmm, in fact I'm fairly certain the problem lay in navigation, not rerouting.
Tested further, and now didn't even get to the blue box, saying recalculate. When I enter the data I want to route to, I see the route, now hitting 'start navigation', gets me into the same "freeze", i.e. the car position is updated, until it runs of the map, as it's not autocentered after touching the screen. But then modrana doesn't react to keypresses.
It's not really freezing the system, as the CPU load doesn't rise, modrana can be closed, but it's dead to input.
Left it like that for a couple of minutes, in hopes it'd pick up, but didn't. Before, the blue box also didn'h display right away, but in the end it did, but not now. Same problem a couple of times, so it's a recurring behavior.
|
2010-11-10
, 14:11
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#300
|
- find nearest turn
- check if the distance from the nearest point increases for 5 seconds
- if it does, switch to next turn
OK, I can add an option for this, something like "start automatically on new route" to the options->navigation submenu.
This looks like a partial crash of the modRana, there might be something in stdout about it. BTW, you can enable modRana stdout logging from "options->debgu->log stdout to file". ModRana wil then create a log of its stdout output to the MyDocs/modrana_debug_log folder on each start.
Tags |
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps |
|
ModRana does not actually calculate routes, but asks an online service. ModRana currently waits for a reply and the GUI freezes while it waits.
The reply usually comes instantly on a good connection, but it can take a while on a slow one. This means that the modRana interface might freeze for up to 30 seconds (current connection timeout value) if the query or the result gets lost.
Thats clearly not ideal and I am going to implement the queries in a separate thread. There should also be a "getting route" overlay with a cancel button.
I already see quite a few things to do with it:
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)