[ gpsdrive ] External program interfacing with gpsdrive
Guenther Meyer
d.s.e at sordidmusic.com
Mon Aug 25 04:38:07 AKDT 2008
Am Montag 25 August 2008 schrieb stan:
> > what are trying to do?
> > As I did most of the poi code, maybe I can help you...
>
> Thanks :)
> I'm not really sure how to work things yet, if you have the code for
> searching street names it would be a good place to start. From there,
> selecting a street and clicking 'select target' would fire up the routing
> functions, create a track file and load the track file.
the current plan is, to set the target coordinates after clicking 'select
target', because I didn't think about someone doing routing code this
year ;-)
so I guess I will include a toggle button into the search, where the user can
decide, if he wants just the target to be set ('direct navigation', the
classic functionality) or if he wants a route calculated (which fires your
functions...).
> Other than formating the results into a track file, all this should use the
> functions already in place and a few sql commands so it seems the simplest
> place to start.
the easiest thing first to do, would be creating a route in the existing route
functionality with a route point for every turning direction. most of the
needed icons should already be there, and composing a text from your routing
data shouldn't be too difficult.
> Having a look at tsearch2 at the mo, the database still needs lots of
> tidying so now would be the time to get some advanced search functions in
> there too. Searching for street names, then using the results to search for
> nearest towns etc. will be a resource hog, the database is going to take a
> long time to build no matter what so may as well add a few more hours to
> enable fast searches. Also have to keep in mind some kind of framework for
> directions, ie. 'take the next left, roadname, roadnumber', the tsearch
> tables may be useful here.
> I'm happy working away at this and learning quite a bit doing it, but it
> really needs someone who knows databases to check the layout when it's
> ready for testing, it seems to me I'm entering the same stuff 3 times in
> slightly different formats :)
> cheers
>
yes, we definitely have to work on the database.
the problem is, it is more or less the database providing information for the
mapnik rendering, so we can't change any of the existing tables without
risking to break the rendering. BUT we can add tables and indexes as we need,
I think.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20080825/9bd8edd6/attachment.bin>
More information about the GPSdrive
mailing list