maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Navit GPS (and libgarmin) for os2008 (https://talk.maemo.org/showthread.php?t=18093)

gerritv 2009-02-13 17:48

Re: Navit GPS (and libgarmin) for os2008
 
Hi ernia,
Mille grazie, I will try this tonight.
the #navit team are working on the next turn icon issue although I fear that once again it will be the poor svg support in Maemo that bites us.

Gerrit

lemmyslender 2009-02-13 20:08

Re: Navit GPS (and libgarmin) for os2008
 
gerrit,

I haven't used run-standalone.sh (novice to linux, newbie to the n8x0's), currently launching by "navit /media/mmc2/maps/navit/navit.xml" in either launcher or command line when I want to see output. I'll try using run-standalone.sh tonight (any quick synopsis on why we should use it?)

much like ernia, I have a list of bookmarks that I can use for routing, editing if needed to add/remove/rename items.

Also, if you tap on the map, choose actions, the top right item (the map) has the coordinates of your tap. Choose the map, then set as position or destination. Exit back to the map, scroll, select another point, set at either destination or position and navit will route between the two.

Once I have a route, I switch to the demo car to see the navigation turns, street names, etc.

gerritv 2009-02-13 22:51

Re: Navit GPS (and libgarmin) for os2008
 
ernia/lemmyslender, many thanks for teaching me about the routing. To me this is totally non-intuitive. But now that I know it is obvious :-)

Having tried the routing, I did a bit of digging in the code, then asked a ? on #navit. My theory was correct, the icons used to display Next trun are by default .svg files. And we know how well that works on Maemo.
The solution is to add
Code:

icon_src="$NAVIT_SHAREDIR/xpm/%s_wh_48_48.png
to the next_turn OSD config line. Voila, your icons appear again. E.g. the line I used is
Code:

<osd enabled="yes" type="navigation_next_turn" x="325" y="-135" w="150" h="100" align="15" background_color="#a60c0f00" icon_src="$NAVIT_SHAREDIR/xpm/%s_wh_48_48.png" />
gerrit

lemmyslender 2009-02-14 00:26

Re: Navit GPS (and libgarmin) for os2008
 
gerrit

Speaking of totally non-intuitive, however, it worked like a charm. Also added it announcer_toggle line as well (...%s_48_48.png) and got the icon back there as well. The toggle still doesn't work, but at least I have a pretty picture.

Without you around, we'll be lost for a while.

Is the boat work or pleasure?

samco 2009-02-14 03:38

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by gerritv (Post 264248)
I can't create routes using town etc because the N800 doesn't have a locale for Canada.

I have the same problem in Australia, plus a lack of is_in tags. To get routing by town to work, I had to do two things:
  1. Put a script called navit in /usr/local/bin/.
    Code:

    #!/bin/sh
    LANG=en_AU /usr/bin/navit

    Because /usr/local/bin/ preceeds /usr/bin in the PATH, this script will be called from the launcher in preference to /usr/bin/navit.
  2. Hack osm2navit to add is_in=Australia to every place in the OSM export and regenerate the map. You won't need to do this if OSM already has is_in tags for Canada.

After doing these two things, routing by town works great. Street names seem to work too but I haven't tried them all that much.

gerritv 2009-02-14 04:08

Re: Navit GPS (and libgarmin) for os2008
 
Hi Lemmyslender
The boat is pure pleasure. 66 days Auckland to Vancouver.

Samco, I will use your trick, en_CA is not in the default locale. My other approach was to add a locale but that is not trivial from what I have seen.

Gerritv

lemmyslender 2009-02-14 14:38

Re: Navit GPS (and libgarmin) for os2008
 
Ahhhh

Enjoy your trip then. My brother works on boats, 30 on / 30 off (local trips in the Gulf of Mexico). I know there are longer ones out there. Just wondered.

gerritv 2009-02-23 19:46

Re: Navit GPS (and libgarmin) for os2008
 
There are some updates on the wiki for OSD for Navit from Mineque of the #navit IRC channel.
Some of the settings are not quite correct for N8x0 yet, but those are coming shortly.

Gerrit

gerritv 2009-02-25 02:05

Re: Navit GPS (and libgarmin) for os2008
 
From SVN2070 onward (tonight) you should see all the icons included in the Click to Install versions from my blog and from maemo.org/downloads. The icon file on my site will go away by the end of this week as it won't be needed anymore.

Gerrit

yenemy 2009-02-26 11:38

Re: Navit GPS (and libgarmin) for os2008
 
Hi all; I'm trying to get Navit working with a garmin map (just the free basemap), but I'm getting some funky output in the 'out' file using run-standalone (included at end). The basemap shows up when I change the Projection to "Garmin", but it is displaced quite a long distance to the right (east).

I have a GPS fix, .bin maps from OSM work fine, and as far as I know I'm using the newest versions of libgarmin and navit.... any help at all would be appreciated! Thanks!

Code:

navit:navit_set_attr_do:0xfffdd1ee,0xeaef
vehicle_gpsd:vehicle_gpsd_try_open:Connected to gpsd fd=4 iochan=0x1549c0 watch=0xd
:/work/compile/libgarmin/src/src/garmin.c:217:1|:libgarmin 0.1 initializing as GPS Backend
:/work/compile/libgarmin/src/src/garmin.c:471:1|:Loading /media/mmc1/garmin/gmapbmap.img as disk image
:/work/compile/navit/src/navit/map/garmin/garmin.c:983:1|:Using builtin types
gui_gtk:gui_gtk_toggle_init:Unable to locate CursorAction
gui_gtk:gui_gtk_vehicles_update:enter
navit:main:Using '/usr/share/navit/navit.xml'
:/work/compile/libgarmin/src/src/garmin_lbl.c:307:1|:Have 196 countries, 247 regions, 140033 cities, 0 zip codes
:/work/compile/libgarmin/src/src/garmin_lbl.c:307:1|:Have 0 countries, 0 regions, 0 cities, 0 zip codes
:/work/compile/navit/src/navit/map/garmin/garmin.c:811:1|:Can not find map data for the area: 1527514.000000 -5460544.000000 1525514.000000 -5458544.000000
:/work/compile/libgarmin/src/src/garmin_lbl.c:307:1|:Have 0 countries, 0 regions, 0 cities, 0 zip codes
:/work/compile/navit/src/navit/map/garmin/garmin.c:811:1|:Can not find map data for the area: 1527486.000000 -5460546.000000 1525486.000000 -5458546.000000
:/work/compile/navit/src/navit/map/garmin/garmin.c:811:1|:Can not find map data for the area: 1527488.000000 -5460548.000000 1525488.000000 -5458548.000000
:/work/compile/navit/src/navit/map/garmin/garmin.c:811:1|:Can not find map data for the area: 1527489.000000 -5460548.000000 1525489.000000 -5458548.000000
:/work/compile/navit/src/navit/map/garmin/garmin.c:811:1|:Can not find map data for the area: 1527489.000000 -5460548.000000 1525489.000000 -5458548.000000
:/work/compile/navit/src/navit/map/garmin/garmin.c:811:1|:Can not find map data for the area: 1527489.000000 -5460547.000000 1525489.000000 -5458547.000000


fragos 2009-02-26 23:19

Re: Navit GPS (and libgarmin) for os2008
 
Very interesting -- routing without an Internet connection.

ernia 2009-02-27 07:00

Re: Navit GPS (and libgarmin) for os2008
 
@gerrit
thanks a lot, as usual.
please, could you check why the repository installed by clicking on the icon in maemo dowloads seems to be a chinook one? application manager does not find navit updates until i disable-enable the repository, could it be because the repository seems to be a chinook one?

fragos 2009-02-27 07:06

Re: Navit GPS (and libgarmin) for os2008
 
It's not unusual for chinook applications to work on diablo.

ernia 2009-02-27 07:42

Re: Navit GPS (and libgarmin) for os2008
 
yes, the unusual thing is that application manager does not update navit if i don't disable-enable the repository everytime. is just a my issue?

dwould 2009-02-27 13:25

Re: Navit GPS (and libgarmin) for os2008
 
ernia:I've not had that issue, application manager pings up every couple of days with the latest svn build ready to install without issue.

gerritv 2009-02-27 16:15

Re: Navit GPS (and libgarmin) for os2008
 
ernia: the App Mgr should have asked you to add the repository on the first attempt. Maybe just add it from the menu? Navit started with Chinook version, but it is only built for Diablo now. I guess we could get the directory names changed but then the repo info for the existing users breaks :-(

Gerrit

jayden 2009-02-27 20:11

Re: Navit GPS (and libgarmin) for os2008
 
If there are many maps installed, for example one is of Toronto of Canada, and one is of Paris of France, when I travel from Toronto to Paris, do I have to switch maps manually?
thanks

gerritv 2009-02-28 01:20

Re: Navit GPS (and libgarmin) for os2008
 
Hi,
I don't think you need to switch manually. Navit centers on the map that matches the GPS location.
don't forget to turn off the GPS and Wifi on the plane though :-)

Gerrit

ernia 2009-02-28 07:07

Re: Navit GPS (and libgarmin) for os2008
 
ok, i'll investigate, thanks for feedbacks

sunnydips 2009-03-12 03:35

Re: Navit GPS (and libgarmin) for os2008
 
where do i save the map file?

ernia 2009-03-12 04:58

Re: Navit GPS (and libgarmin) for os2008
 
i did save map file in external sd card, basically you can put it where you want, but you must edit ~/.navit/navit.xml (or /usr/share/navit/navit.xml, but i think it would be rewritten at every installation) to point to that file.
you could give a look at these two useful pages of navit's wiki:
http://wiki.navit-project.org/index....figuring_Navit
http://wiki.navit-project.org/index....n770/n800/n810
you will save a lot of time

tomstratton 2009-03-13 01:34

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by lemmyslender (Post 264382)
gerrit

Speaking of totally non-intuitive, however, it worked like a charm. Also added it announcer_toggle line as well (...%s_48_48.png) and got the icon back there as well. The toggle still doesn't work, but at least I have a pretty picture.

Without you around, we'll be lost for a while.

Is the boat work or pleasure?

Lemmyslender - is YOUR "navitOSD.xml" file available online somewhere?

I'd love to get that for reference in fixing the missing icons you referenced earlier in February.

Thanks

Tom Stratton

lemmyslender 2009-03-13 01:59

Re: Navit GPS (and libgarmin) for os2008
 
1 Attachment(s)
Tom,

Here it is. I think it should work, been a little while since I played with it. I'm calling (using the include function) it from my navit.xml file, but you should be able to cut and paste it in where you need it.

Enjoy.

tomstratton 2009-03-13 02:54

Re: Navit GPS (and libgarmin) for os2008
 
Um - I may have looked in the wrong place but I can't figure out how to enter an address and have it actually USED as a destination for a route. Can anyone explain that to me?

I can click on a map point and use that as a destination (though the calcualtion is VERY slooooow) but that is next to useless 'cuz if I know where I'm going I don't need a navigation system to get there!

Help me please...

Thanks

Tom

ernia 2009-03-13 03:55

Re: Navit GPS (and libgarmin) for os2008
 
navit is still very alpha and navigation through addresses doesn't work very well, as far as i know. recent svn are really slow on n810, i think that navit's guru in the forum, gerritv or dwould, could build n810 optimized navit packages, i can't do it myself. gerritv is on holiday with no connectivity, so the only one that can help us is dwould, unless you can do it yourself.
The latest optimized build wich i'm aware of is the one you can download from gerritv's blog: http://tech.visser-scully.ca/
post #280 in this thread explain how to route through two points of known coordinates.
if you need reliable navigation right now i think you better use maemo mapper or buy a temporary wayfinder license

sunnydips 2009-03-13 04:02

Re: Navit GPS (and libgarmin) for os2008
 
well im going to try out roadmap instead i guess... hope this is easier to use

tomstratton 2009-03-13 12:17

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by ernia (Post 271352)
navit is still very alpha and navigation through addresses doesn't work very well,
<snip>
if you need reliable navigation right now i think you better use maemo mapper or buy a temporary wayfinder license

Thanks for the help. I didn't realize how far we still had to go - the 5 star rating on maemo.org is a little misleading (though I should have known better)

Tom

dwould 2009-03-13 13:10

Re: Navit GPS (and libgarmin) for os2008
 
Hi, I'm afraid navit on n810 is not super fast no matter what you do in the build. MY experience so far is that it's pretty good until you get an actual gps signal at which point responsiveness drops a lot.
I've been somewhat busy with other things so I've not had a chance to try much new recently.
I do have an RSS feed of the changes going into the code base which is shown on my blog
http://danielwould.wordpress.com
I have been keeping an eye out for interesting looking changes.
As for the 5 star rating, it depends what you want from the app, it continues to have great potential, and is really nice for rendering maps of the area you're in, if what you want is to keep an update map of your country and be able to render your local area without an internet connect etc, then it is fantastic. However navigation remains slow. ( too slow for me, but then I have a tom tom and sat nav on my phone so I have a low threshold for switching if I just want navigation that works)

If I get time this weekend I might finish what I started setting up scratchbox on my server, which at least puts me in a better position to try things.
Unfortunately Gerrit is the man that knows he C, so was better placed to actually make improvements ;-(


UPDATE: taking a look today there have been some updates around gypsy as an alternative to gpsd. It seems gypsy is going to be used in fremantle and I'm investigating what I need to do to try things out on the n810. I have no idea if it will have a performance benefit. If anyone else knows anything about gypsy, installing/configuring etc. please post about it.

sunnydips 2009-03-14 20:00

Re: Navit GPS (and libgarmin) for os2008
 
for some reason when i try to enter a destination it hangs.

sunnydips 2009-03-14 20:13

Re: Navit GPS (and libgarmin) for os2008
 
is there a manual for using this thing???

ernia 2009-03-14 20:13

Re: Navit GPS (and libgarmin) for os2008
 
you can set the center position in navit.xml (see navit's wiki or your navit.xml for details) or, better, go out and get a gps fix, navit will remember your last position. navigation trough addresses/town, as stated before, doesn't work very well now (as far as i know), i think that the only method to get a route is the one in post #280 and #281 or #282

ernia 2009-03-14 20:15

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by sunnydips (Post 271697)
is there a manual for using this thing???

see post #301

dwould 2009-03-14 20:19

Re: Navit GPS (and libgarmin) for os2008
 
have you tried http://wiki.navit-project.org/index.php/Main_Page
i suspect it appeared to hang when a destination was entered due to hitting max cpu calculating the route.

ernia 2009-03-14 20:27

Re: Navit GPS (and libgarmin) for os2008
 
i succesfully got a route calculated from italy to austria (about 400 km), while i wasn't able to calculate a route from italy to germany (about 800 km). this issue should be the one reported in bug #243, while the navigation not working through city should be the one in #276.
why do you thing that is a cpu-problem? that would be the end of navit on n810 :(

dwould 2009-03-14 20:59

Re: Navit GPS (and libgarmin) for os2008
 
it's just that in my experience, as it seems in yours, that some rouutes can fail or chew time and cpu. It's certainly capable of routing. but sometimes map data can cause it problems.

sunnydips 2009-03-14 21:07

Re: Navit GPS (and libgarmin) for os2008
 
Well I can enter locations but I'm having trouble with some locations... I got my map from http://downloads.cloudmade.com/north....navit.bin.zip

when i zoom into my gps fix i can see my road & its name but when i try to search for it when entering a destination its like it doesnt exist

sunnydips 2009-03-15 01:46

Re: Navit GPS (and libgarmin) for os2008
 
lol wow i've updated navit like 3 times in a week. whats going on?

sunnydips 2009-03-15 01:51

Re: Navit GPS (and libgarmin) for os2008
 
Dwould, would you be kind enough to post a video showing how you perform basic functions like entering destinations etc

I'd like to see how it works

lemmyslender 2009-03-15 02:14

Re: Navit GPS (and libgarmin) for os2008
 
sunny-

I get my maps from cloudemade (and therefore openstreetmap.org). In my area (ohio) there are a lot of errors in the maps. For instance, the street my parents live on seems have multiple dis-jointed sections. Because of that, my location appears to follow the street fine, but I can not route to or from anywhere on their street. It onlyshows up on max zoom (sorta) or if you try to edit at openstreetmaps.org.

The many errors make routing difficult and tedious. I wish I had time to go through and correct them, but I don't. Corrections can take a week or three to show up on cloudemade, which adds to the frustration.

Perhaps you are experiencing the same types of errors I see.

Navit is still very much a work in progress, so there are frequent updates, some of which benefit us using n8x0's and many which don't. As a result of these updates, some features break, and some change how they are implemented, making directions a moving target. The wiki probably has the most current imfo. We may have answers to specific questions here as well.

dwould 2009-03-16 15:44

Re: Navit GPS (and libgarmin) for os2008
 
sunnydips, if I had a clue how to do that I would. but I have no video camera and no idea if I can capture fully screen video of using the device? I'd guess not.

lemmyslender, yes it's frustrating that fixing problems in the map takes time to filter through, but I personally love that I can fix problems at all. I've added some is_in tags for various destinations I use to ensure they show up in searches. I took a little while to come through, but I can live with that.
I think the fact that you can edit this stuff live on the webpage these days is pretty amazing. When I mapped my home town I did it all in a standalone java editor. Now you can even get osm2go for maemo and make your changes whilst out and about.


All times are GMT. The time now is 03:14.

vBulletin® Version 3.8.8