[ gpsdrive ] routing with gpsdrive
Ross Scanlon
info at 4x4falcon.com
Thu Jan 8 15:28:53 AKST 2009
Hi,
Attached is navigation.c navigation.h navigation_gui.c navigation_gui.h do_gosmore.pl
These have the basic routing functions for use with an external script.
More work needs to be done but it works with gosmore called from an external script at the moment.
The perl script do_gosmore.pl calls gosmore and converts it's output to a gpx file saved in ~/.gpsdrive this also still needs to be improved, eg take output directly from gosmore rather than creating temporary file. I did it this way for determining/solving problems.
Setup:
Create two directorys
/usr/share/gpsdrive/plugins
/usr/share/gpsdrive/plugins/gosmore
copy the script do_gosmore.pl to the directory /usr/share/gpsdrive/plugins
Download and compile gosmore to the directory /usr/share/gpsdrive/plugins/gosmore
Create the gosmore.pak file in this directory also.
main_gui.c needs to have
<include> "navigation_gui.h"
entered where the other includes are at the begining of the file
and the call to
draw_navigation_button (vbox_buttons, maintool_tips);
entered before the creation of the route_bt.
I'll create a patch over the weekend with all this in it.
Regards
Ross
On Thu, 8 Jan 2009 18:14:18 +0100
Guenther Meyer <d.s.e at sordidmusic.com> wrote:
> ok, I summarize:
>
> we have currently the following modules, that could be realized:
> - openrouteservice
> - gosmore
> - pgrouting
> - generic (for external scripts or binaries)
>
> as this will all be modular, others can be added.
>
> I will do the basic navigation.c stuff for the gpsdrive integration, you or
> someone else does the modules ;-)
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: navigation.c
Type: text/x-csrc
Size: 4085 bytes
Desc: not available
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090109/7be5453b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: navigation.h
Type: text/x-chdr
Size: 1493 bytes
Desc: not available
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090109/7be5453b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: navigation_gui.c
Type: text/x-csrc
Size: 3348 bytes
Desc: not available
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090109/7be5453b/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: navigation_gui.h
Type: text/x-chdr
Size: 1230 bytes
Desc: not available
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090109/7be5453b/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: do_gosmore.pl
Type: application/x-perl
Size: 4235 bytes
Desc: not available
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090109/7be5453b/attachment-0004.bin>
More information about the GPSdrive
mailing list