forum for navit navigation tool
It is currently 27 Nov 2022, 19:12
View unanswered posts | View active topics

All times are UTC

Forum rules

Feel free to ask anything here related to the development process - coding, creating new features, fixing bugs and custom changes of Navit.

Note: For reporting bugs, use the bug tracker.

Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Snail mode
PostPosted: 29 Oct 2013, 08:47 

Joined: 29 Oct 2013, 08:38
Posts: 1

I'm totally new in Navit and I'd like to add a feature. My purpose is to add a trace, following cursor position when moving, with an external (possibly changing) color. Of course, map scaling will affect the draw. There are a lot of application for this feature, mine is the availability of phone network.

Hope someone will be able to let me know the best way to realize the task.
A plugin seems good way, but I didn't seen how to be called when moving or rescale.


 Post subject: Re: Snail mode
PostPosted: 29 Oct 2013, 11:25 

Joined: 26 Sep 2013, 10:59
Posts: 74
Only to show the way (not a snail with constant length):
For Android: This you need to change in config-file navit.xml of Navit (track is the Keyword):

<layer name="Internal">
<itemgra item_types="track" order="7-">
   <polyline color="#3f3f3f" width="3"/>

Its there, you only need to change color. Perhaps track_tracked after this has to do with it, too.
Then to store your way in navit.xml:

<log enabled="yes" type="textfile" attr_types="position_time_iso8601,position_direction,position_speed,profilename,position_radius" data="/sdcard/navit/logs/track_%Y%m%d-%%i_nav.txt" flush_size="1000" flush_time="30"/>

The line before on this position:

<vehicle name="Local GPS" profilename="bike" enabled="yes" active="1" source="android:" follow="1">
(here in between)

Perhaps profilename is car, not bike. Its the standard-vehicle for routing.
To show the stored way (save and show simultaneous)

<mapset enabled="yes">
   <maps type="binfile" enabled="yes" data="/sdcard/navit/*.bin"/>
   <maps type="textfile" enabled="yes" data="/sdcard/navit/logs/*.txt"/>

 Post subject: Re: Snail mode
PostPosted: 10 Mar 2017, 20:42 

Joined: 10 Mar 2017, 20:36
Posts: 1

I use all these recomendations, but tracks displayed after restart Navit only.
I need that tracks draws in realtime, if it possible. Maybe via plugin or navit.xml?

Regards, Yuriy.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS