|
2010-09-04
, 13:16
|
Posts: 1,994 |
Thanked: 3,342 times |
Joined on Jun 2010
@ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
|
#172
|
But seriously, the buttons need to be distinct even in sunlight and from a distance, as in the case of car or bicycle navigation.
As all the PNGs are already (manually) generated from a SVG file, I would like to replace them directly by SVG icons in the future.
Well, yes, it is a bit against the fremantle GUI metaphor, but:
* you can easily go back to previous menu with your thumb when holding the N900 in your left hand
* in most default modes you can also access the main menu by your left thumb and navigate the map with your free right hand
* the fremantle style "back" buttons always seemed too small to me
* it is hardcoded in quite a few places
* all menu levels have the same simple and easily comprehensble structure
* it follows the ancient tradition of latin script, by adding elements in rows, from left to right, top down
Unfortunately, plain OSM XML data can not be used (most probably because of the xml processing overhead)
The OSM is being updated all the time, so some sort of update mechanism could be needed.
It seems that both Gosmore and Routino work on N900 and could be theoretically interfaced with modRana.
|
2010-09-04
, 13:48
|
|
Posts: 702 |
Thanked: 334 times |
Joined on Feb 2010
@ Israel.
|
#173
|
|
2010-09-04
, 17:56
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#174
|
Why? I have a 137KB *.osm file (do not use anywhere yet, just downloaded to look at it). Is routing that difficult?
One possible approach:
take current coordinates;
take coordinates of destination;
generate vector of needed direction;
find the closest node (not more than 5 minutes away from current coordinates);
find the ways including this node;
for each of the ways, take this one "current" node and take the next node after it and the previous before it;
take the difference of GPS coordinates of current and next/previous node - you get two directions of the road;
of these several directions, take the one which has the direction closest to needed.
Thus, you can ask human to walk back if it seems that his destination is behind him. And no rerouting is needed because "route" is calculated incrementally.
It's no better than walking by Sun and compass, but it requires no complex algorithms, and can be done at night without moon and stars. For a pedestrian it will not be that bad; at least, it will not be a bee-line requiring to jump over fences.
Not all foot-walks are shown on a map, so no complex algorithm could give an ideal result; and this simplistic algorithm would often lead to "blind alleys" which turn out to be non-blind at all.
Just like for map tiles! But I can give an algorithm (human-readable and machine-breaking.
http://78.46.81.38/
1. Find a Wikipedia article about this place (suburb/street).
2. Take GPS coordinates from article and put them into "To which country belongs this location?".
3. In small XML file find the tag which includes the name of the place, and take its ID.
4. Put the ID into "Download an entire city".
You have the *.osm XML file with nodes, ways, relations, etc.
Gosmore requires Diablo dependencies. Routino website www.routino.org cannot be found. I don't have patience to solve these problems right now.
Best luck to you! If you make ModRana use either of them, I will cheerfully attempt to test it.
Modrana shows me where I am immediately, but I can't find my way to starting a navigation session.
For example, navigate from my house to my parents house.
Google maps appear, I can see where I am, move around, zoom in out, but, where do I put in my destination address and hit "Navigate"?
I tried using the "Route" option in the menu, just doesn't work.
I set the start position to me my current position, inserted some letters in the destination, press route and nothing happens, no error too.
Any ideas?
The Following User Says Thank You to MartinK For This Useful Post: | ||
|
2010-09-05
, 01:25
|
Posts: 1,994 |
Thanked: 3,342 times |
Joined on Jun 2010
@ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
|
#175
|
This could be because how the OSM XML is formated. The nodes are ordered by id not by latitude or longitude and the id don't go in a complete sequence, so they cant be used as a list index. The nodes also have no info about which ways they are part of. Ways on the other hand have have just a sequence of node ids.
There is also a lot of irrelevant information like usernames and timestamps.
I think that with this structure, all operations needed for routing, like computing distance between nodes or finding which way is a node part of would be very, very slow.
My guess is, that in the binary formats:
- they sort the nodes and ways, so that near nodes/ways can be quickly found
- nodes have info about which ways they are part of
- ways have complete info about their nodes
- every item has some global id, so you can just jump on a position in the file to get relevant data
- all unneeded items are removed
Also, country sized extracts seem to have 100MB+, for example the whole UK has 218MB.
If I understand this correctly:Well, this could theoretically get you to in the direction to your destination, by any means possible. At least, it could be quite an adventure.
- find nearest node that is a part of a route
- follow the route in both directions
- on both ends, choose the node, that is closest to the destination
- then this for all ways joining the segment between the chosen node and closest one
- do this for say, 10 steps maximum
- automatically update as the current position changes
There also seems to be a binary OSM API for mobile devices, that accepts bounding box input and also supports diffs.
The Following User Says Thank You to Wikiwide For This Useful Post: | ||
|
2010-09-05
, 21:50
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#176
|
Oh, I see. But nobody is going to travel through the whole UK. Most people need just one small region/city.
There is an application compiled for Maemo 4 and Windows CE which uses OSM Binary Protocol:
http://sourceforge.net/projects/roadmap/files/
You can have a look at its code.
|
2010-09-05
, 22:49
|
Posts: 1,341 |
Thanked: 708 times |
Joined on Feb 2010
|
#177
|
|
2010-09-06
, 00:20
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#178
|
I tried to use modRana this weekend, but wasn't succesful at all. Did use Maporama then. But I see modRana's GUI with big buttons has potential.
First, when buttons are touched on the touch screen, nothing indicates you have succesfully touched a button. I guess it is a GUI library issue, but a major lag of usability.
Just creating a route, putting start and end addresses there and then pressing the "route"-button....nothing seems to happen or indicate you have successfully touched the button, until after few seconds it returns to an empty map.
Support for portrait screen would be nice. I use Maporama in portrait mode and the map rotating to the direction I am going, so I will see more road ahead in the map. In landscape mode, I would see less.
Could it be possible to get modRana to use same map tiles on local directory as Maporama is using? So one could download map tiles with either program and both programs could use them?
When going to Menu/route/Current_route, it does show the start and the end addresses. Show on map returns to an empty map again. Tools/start_navigation/first_step returns to an empty map.
Logging the track works though.
Isn't there a way to mark your current position on the map somehow with some dot?
This (and also Maporama) misses a feature where the map can be zoomed without showing a more accurate map. When driving (a car) one cannot see the small font which is on the map. Somekind of pixel doubling or tripling or similar would be useful.
[Edit: I looked the first post again. I just cannot get any indication of the GPS position on the map, although it centers the map correctly where I am. Routes just do not show on the map. I wonder what I've done so those features do not work.
Where in the filesystem does modRana keep its persistent configuration data? Gconf?]
|
2010-09-06
, 00:52
|
Posts: 1,341 |
Thanked: 708 times |
Joined on Feb 2010
|
#179
|
Persistent configuration data is stored in
/opt/modrana/data/options.bin
It is basically a python dictionary stored using the marshal module.
BTW, some drawing errors in the past were caused by corrupted persistent configs
Try to delete/move that file, it might fix your issue
|
2010-09-06
, 08:02
|
Posts: 433 |
Thanked: 274 times |
Joined on Jan 2010
|
#180
|
Tags |
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps |
|
But it can be realistically used in practice. Don't know about navit's routing libs for interfacing too, and there is the problem with OSM data you mention.
Anyhow, navit's solution, is off-the-n900 conversion and then just download to N900, that's not bad. I mean, you don't need to keep updating your maps every second.
The commercial vendors only do it let's say twice a year, and no big fuss, plus you can do it when you desire, on the PC...