Using Python you can create binaries that contain the interpreter and all used
libraries. This is quite small as
Python has a very lightweight interpreter. I can't tell if the very same is
possible with Java.
I do not see any advantage in using a 3rd online service. MapQuest and ORS do
a good job. But having
offline routing would open the way for new features. For example right now you
can draw tracks free hand
or using Garmin maps to snap along roads. Having fast offline routing you could
suggest a route to any
point the current mouse position is pointing to. And that would be a great.
I haven't looked into the BRouter source code so far, nor into the topic
"routing" itself. I always had the
feeling that this is a topic itself like writing QLGT or QMS. And as I hardly
use routes I did not want to open
that barrel. As a consequence routing is the stepchild in the QLGT/QMS
universe. Especially in QMS there is
just a dummy implementation right now.
This is because I have no idea what to do with routing. One of the biggest
problems is, that you can
calculate a route on a PC, your hand held device will derive it's own route.
Garmin extended the GPX route
with a lot of proprietary tags using hashes to use routes calculated by
Basecamp 1:1 on the device. This
makes it very hard to make use of it.
Other devices like those using TwoNav have very decent track navigation. With a
bit of hard work you can
get very close to real off road navigation. But for that offline routing is
mandatory.
Thus if routing should get a real weight it needs a lot of attention. I doubt I
will ever have the nerve for that.
I successfully avoid that topic since 8 years now ;) But if you want to jump in
I would suggest to analyze the
BRouter code. I ported quite some Java code for QLGT, like reading CompeGps
RMAP and Lowrance RMP
maps. It's possible. As BRouter does what we want porting it to C or C++ or
even QT might be the way
with the minor headaches. And as a next step it needs someone who loves routes
to make the most of it.
Honestly routes are no one-night-stand. That topic can keep you busy quite a
couple of years.
Think about it.
Oliver
> Just added a tab to config that allows to configure both BRouter service
> and profiles:
>
> https://github.com/ntruchsess/QLandkarteGT/commit/5ae7899c6d20e00a75d52489c7
> ceb27986ec69aa
>
> Regarding packaging/installing BRouter localy:
>
> I 100% agree the current state is not suitable for a novice user. I
> think it would make sense to change the default-config to make use of
> the existing web-service that is drives http://brouter.de/brouter-web
>
> For local install crafting a .deb-package for debian-like systems would
> not be a problem (and by defining java as dependency it would provide
> the install of the required java-vm for free). On Windows the situation
> a bit different as you would have to include the required parts of the
> JRE with the installer (you may install as many JREs on Windows as you
> like just by putting the required files into the file-system. Using the
> installer provided by Oracle is not required as long you do not need to
> install and register the browser-plugin). One might even compile a
> custom starter for the java-vm that includes an icon and knows about the
> classpath and main-class and merge all required java-classes (including
> the runtime.jar) into a single jar-file making the application appear as
> a regular windows-executable - There's an example included within the
> jdk... (This custom starter might as well be build into QLandkarteGT
> calling into BRouter via the Java native interface bypassing the network
> entirely)
>
> But to be really usable it needs more than just an installer or
> integration of brouter into QLandkarteGT, it needs a small application
> that allows to manage (download) local routing-data and (install and
> edit) profiles. You propably wouldn't want to include the worldwide
> routing-data with a QLandkarte installer as this would result in a
> GB-sized download ;-)
>
> Regarding the missing routing-instructions: BRouter doesn't provide
> these on the online interface, it genererates a gpx-file containing a
> single track only. I did not yet dig deeper into BRouters source, so I
> don't know how hard it would be to generate a combination of route
> containing routing-points with instructions and track-segments in
> between these points.
>
> - Norbert
>
> Am Mittwoch, den 07.01.2015, 22:13 +0100 schrieb Helmut Schmidt:
> > Hi Norbert,
> >
> > OSM _and_ bicyle are nice keywords to raise my interest.
> > And as Oliver dropped my name concerning the windows installer, I am
> > stepping in to this discussion.
> >
> > I had a look at the brouter web pages and git repo.
> > The Java dependencies seem to be too much a burden for me to make a nice
> > windows installer.
> > I am missing an API or protocol description to understand how it works
> > and how it can be used.
> >
> > I agree with Oliver that at C/C++ library would be great.
> > I don't have a problem with a server based approach to decouple services
> > as long as this
> > a) does not introduce additional dependencies
> > b) the setup is easy
> > For the moment I have some doubts whether those conditions are met ;-(.
> >
> > Regards,
> >
> > Helmut
> >
> > Am 07.01.2015 um 18:30 schrieb Oliver Eichler:
> > > Ok, I had a look at it. It seems t work fine. I just can't see any
> > > driving instructions. Not sure if BRouter provides these.
> > >
> > > I was musing over BRouter myself in the past. It would be great to have
> > > offline routing. However doing it via a local routing server is
> > > something that scared me away. For me and you it's no problem to follow
> > > the instructions from the homepage and to embed the start script
> > > somewhere to start the service.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users