maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Navit on N900 (https://talk.maemo.org/showthread.php?t=38800)

gianko 2012-08-24 13:49

Re: Navit on N900
 
Quote:

Originally Posted by sup (Post 1249027)
3) Is it possible to turn off points of interests from view? There are so many in my city (Prague) that I can only barely see the roads underneath them.

My question is, as it possible to turn off some POIs, how can we add new category of POIs ?

there is a list of active pois here: http://wiki.navit-project.org/index....avit/map_items

and a link to the file osm.c: https://navit.svn.sourceforge.net/sv.../maptool/osm.c

but i like to have the missing: bike_sharing, car_sharing, bicycle_parking, pubs, etc.

how can we add these?

rdorsch 2012-09-08 11:23

Re: Navit on N900
 
I uploaded 5222 to bokomoko.de

No big changes just rebuilt latest svn.

Thanks,
Rainer

rdorsch 2012-09-08 11:34

Re: Navit on N900
 
Quote:

Originally Posted by gianko (Post 1255282)
My question is, as it possible to turn off some POIs, how can we add new category of POIs ?

there is a list of active pois here: http://wiki.navit-project.org/index....avit/map_items

and a link to the file osm.c: https://navit.svn.sourceforge.net/sv.../maptool/osm.c

but i like to have the missing: bike_sharing, car_sharing, bicycle_parking, pubs, etc.

how can we add these?

gianko,

I tried something similar with mtb:scale and this is what I did and my conclusions.

I added entries like

+ "w highway=path,mtb:scale=0 pmtb_scale0\n"

into osm.c

If you want to add POIs like pub, you need to extend osm.c, compile maptool, create your custom maps with maptool, and then extend navit.xml to allow navit to display them.

If you want to make new ways and make them routable, you need to insert in addition

The only navit version I have so far for displaying and routing these new ways, I had to add in addition

in item_def.h lines like
+ITEM(pmtb_scale0)

Thanks,
Rainer

PS: There is no need to build for the n900, you can build navit and maptool on a regular linux installation much easier. If you have good patches submit them upstream, if the are very useful for a wide range of users, I would be happy to include them in the n900 build, even when they are not yet included (reviewed would be good though) upstream.

magic_doc 2012-09-09 09:18

Re: Navit on N900
 
1 Attachment(s)
Quote:

Originally Posted by sup (Post 1253609)

[...]

I also made adjustments to my OSD layout and not I think it works well. I now use 96x96 icons, as they are large so one can better use them while driving. I added clock and I made speed bigger and without units (as I know it is in km/h, I am interested in the number. See attached screenshot.

Anyway, I am attaching my working setup now (just download it and unzip to .navit/ ).

Thank you for that, for my taste the ETA and remaining travel-time and distance was too tiny so I adjusted it to my needs.
I found your speech.active-button was not working for me, I found this in the wiki:
Code:

<osd enabled="yes" type="toggle_announcer" x="10" y="50" w="70" h="70" icon_src="$NAVIT_SHAREDIR/xpm/%s_70_70.png" />
which works quite nice, it even displays the status of the toggle.
The only problem with this one: if you switch from fullscreen to windowed-mode, toggle there and switch back, the announcer does not work any more at all :confused:.

If anyone wants to try out, I attached the OSD.xml zipped.

CU & HAND

Michael

gianko 2012-09-12 15:42

Re: Navit on N900
 
Quote:

Originally Posted by rdorsch (Post 1263070)
gianko,

I tried something similar with mtb:scale and this is what I did and my conclusions.

I added entries like

+ "w highway=path,mtb:scale=0 pmtb_scale0\n"

into osm.c

If you want to add POIs like pub, you need to extend osm.c, compile maptool, create your custom maps with maptool, and then extend navit.xml to allow navit to display them.

If you want to make new ways and make them routable, you need to insert in addition

The only navit version I have so far for displaying and routing these new ways, I had to add in addition

in item_def.h lines like
+ITEM(pmtb_scale0)

Thanks,
Rainer

PS: There is no need to build for the n900, you can build navit and maptool on a regular linux installation much easier. If you have good patches submit them upstream, if the are very useful for a wide range of users, I would be happy to include them in the n900 build, even when they are not yet included (reviewed would be good though) upstream.

thank u! i will try to add some pois, and i will let you know.

ps: and what if we want to see more tags when tapping on show attributes for a poi? usually i can see: name and osm_id, but is it possible, for example, to visualize tag capacity for a poi amenity=parking? or opening_hours and contact info for pois like restaurants? for example address, website, phone? ...if has been added by some osmapper ofcourse :)

sup 2012-09-15 12:50

Re: Navit on N900
 
Quote:

Originally Posted by magic_doc (Post 1263541)
Thank you for that, for my taste the ETA and remaining travel-time and distance was too tiny so I adjusted it to my needs.
I found your speech.active-button was not working for me, I found this in the wiki:
Code:

<osd enabled="yes" type="toggle_announcer" x="10" y="50" w="70" h="70" icon_src="$NAVIT_SHAREDIR/xpm/%s_70_70.png" />
which works quite nice, it even displays the status of the toggle.
The only problem with this one: if you switch from fullscreen to windowed-mode, toggle there and switch back, the announcer does not work any more at all :confused:.

If anyone wants to try out, I attached the OSD.xml zipped.

CU & HAND

Michael


Now that is strange, toggle_announcer does not work for me:-).

BTW: does night/day layout switching work for anybody? (if so, how?)

gianko 2012-09-16 15:30

Re: Navit on N900
 
Quote:

Originally Posted by rdorsch (Post 1263070)
If you want to add POIs like pub, you need to extend osm.c, compile maptool, create your custom maps with maptool, and then extend navit.xml to allow navit to display them.

i tried to add the poi amenity=bicycle_parking

using ubuntu i dowloaded sources and modified osm.c:
i just added a new line with "? amenity=bicycle_parking poi_bicycle_parking\n" after static char *attrmap={ (line 376)

just this?

then i compiled navit successfully, and made a map.bin from osm.xml using maptool

now how can i modify navit.xml ? i tried to add the poi in the bike layout but no results, i added a line <itemgra item_types="poi_bicycle_parking" order="14-"> <icon src="bench.png"/> </itemgra>
i put bench.png just to try as i don't have a bikeparking.png icon, and i don't know where should i put the new icons

ps:sorry for bit OT but maybe is of use for other navit users...and in navit irc channel nobody replies :)

gianko 2012-09-22 14:19

Re: Navit on N900
 
now im able to add more POIs thanks to this guide: http://wiki.navit-project.org/index...._POIs#Hard_way

is not so complicated so if you want i can make svg icons of some new pois and add patches for next release

rdorsch 2012-09-29 19:25

Re: Navit on N900
 
I uploaded revision 5440 of navit to bokomoko.

I has support for mtb_scale mountainbike tracks. Since the navit maps generated from osm do not have these paths, nobody should notice. If somebody experiences problems, please let me know. If somebody wants the mtb_scale enabled maps, let me know as well :-)

Rainer

rdorsch 2012-09-29 19:26

Re: Navit on N900
 
gianko,

I am happy to accept patches. Just let me know where they are and I will include them (although if upstream would include them, that would make even more sense).

Thanks,
Rainer


All times are GMT. The time now is 05:53.

vBulletin® Version 3.8.8