Just added a tab to config that allows to configure both BRouter service and profiles:
https://github.com/ntruchsess/QLandkarteGT/commit/5ae7899c6d20e00a75d52489c7ceb27986ec69aa 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. > > > > However for the normal user this is way too much. They expect to install > > QLandkarte or QMapShack with more or less a single click and everything > > has to work. For some even downloading maps, DEM files and with BRouter > > routing information, is a hard task that pushes their skills to a limit. > > > > Thus the only way to make that work is to install BRouter with QLGT or > > QMS. Easier said than done. BRouter uses Java. Thus a complete JRE has > > to be installed on the system. For Windows the installer is done by > > Helmut and he could package BRouter as he is doing it with GDAL. Still > > the correct Java installation has to be done somehow. > > > > For Linux it's way more complicated. We have to convince the package > > maintainers to install BRouter. Often the maintainers do not really know > > the software they maintain. If it compiles and starts without a complain > > it's done. Connecting to a BRouter server will slip their attention. > > > > These are the reasons why I would say Java is not the best language for > > such I nice software as BRouter is. I would prefer a C/C++ library that > > can be embedded into other applications or into script languages like > > Java or Python. Imho the server approach is just a lame way to > > workaround that problem. > > > > Anyway is there a nice way to solve this? I really like having an > > offline router and I have the deepest respect for the author's work of > > BRouter. If it would be for that silly Java trap... > > > > Oliver > > > > > Hi there, > > > > > > > > > > I've implemented support for BRouter (http://brouter.de/brouter-web/) in > > > > > QLandkarteGT: > > > > > > > > > > > > https://github.com/ntruchsess/QLandkarteGT/commit/486d31517d97a519ef9a5410e4 > > > > > 70349229c83d0c > > > > > > > > > > It adds a new Routing-configuration for BRouter that allows to choose > > > > > the appropriate routing-profile. Brouter is best installed locally (see > > > > > https://github.com/nrenner/brouter-web#readme) and run in standalone > > > > > mode. > > > > > Support for custom-routing-profiles you might have added to your > > > > > BRouter-install may be configured in QLandkarteGT.conf (no gui yet), > > > > > routing section. Non-local ip and port may also be set there: > > > > > > > > > > [routing] > > > > > service=2 > > > > > BR\preference=4 > > > > > BR\profiles=car-test|fastbike|moped|shortest|trekking > > > > > BR\host=127.0.0.1 > > > > > BR\port=17777 > > > > > > > > > > If you are interested to merge this change into QLandkarteGT SVN-repo in > > > > > which format would you like to receive the change? Or do you prefer > > > > > giving contributors write-access to the SVN-repo? > > > > > > > > > > regards, > > > > > > > > > > Norbert > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------- > > > > > -- 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 > > > > > > > > ------------------------------------------------------------------------------ > > 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 > > > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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
