brouter as desktop application

560 views
Skip to first unread message

develar

unread,
Aug 21, 2013, 4:52:16 AM8/21/13
to osm-android...@googlegroups.com
Hello. I don't have android smartfon (I have iPad), online version is not very usable and main reason — I want to use my map data (for example, I want to download latest openmtbmap). Could you please publish brouter sources to github?. I want to try develop such application.

abre...@googlemail.com

unread,
Aug 24, 2013, 10:20:07 AM8/24/13
to osm-android...@googlegroups.com


On Wednesday, August 21, 2013 10:52:16 AM UTC+2, develar wrote:
Hello. I don't have android smartfon (I have iPad), online version is not very usable and main reason — I want to use my map data (for example, I want to download latest openmtbmap). Could you please publish brouter sources to github?. I want to try develop such application.

Hi,

sorry I did not (yet) publish the sources.

What I published is a binary bundle with the "server-jar", which is also a command-line-version, and some "API-documenting Java-Sources". Check here:

http://h2096617.stratoserver.net/brouter_bin/brouter092_bundle.zip

The diff from version 0.92 to the current version (0.93) affects only the service-interface, so for the routing core this is still up-to date.

This API is not very clear and not well documented, but it should be possible to get it integrated. These weaknesses in the source-code structure are the reason that I do not want to publish yet, but I'm working on a cleanup that will allow publication.

Please have a look at the "RouteConverter" Forum, where is also a discussion of doing desktop-integration together with mapsforge as an offline vector renderer. In the german openstreetmap-foum there is a discussion about creating a more powerful online service. However, none of these have reached critical mass.

Problem with mapsforge I see is that the new version ("rewrite", 0.4 ?) that is able to run in Swing is not compatible with the 0.3-Version maps like OpenAndroMaps that are used in the Android-Map-Tools. But having an integrated desltop tool would be definitely a cool thing.

Achim Augenstein

unread,
Oct 21, 2013, 3:14:22 AM10/21/13
to osm-android...@googlegroups.com
Hi

I have created a desktop application with the brouters Bundle 0.92. This also works very well for me. But I can not "perfect" synchronize my display correctly, because I can not see the end of the routing. Only the query if the corresponding file exists fails because this may not have been fully generated.

Do you have a
solution or a new bundle for the desktop?


Greetings
Achim

abre...@googlemail.com

unread,
Oct 21, 2013, 7:31:02 AM10/21/13
to osm-android...@googlegroups.com
Hi Achim,

I already answered your similar question in (german) OSM-forum.

Short answer is:

yes there's some major rework also for the java-version and starting from brouter 0.95, I include the jar-file in the distribution zip. This includes the comand-line-version, a standalone http-server, the CGI, the pre-processor etc.

However, the brouter095.jar included in the brouter_0-9_5.zip is not fully functional and poorly documented, so better wait for an update.

regards, Arndt

Marko Mäkelä

unread,
Dec 29, 2014, 7:17:49 AM12/29/14
to osm-android...@googlegroups.com
Are there any news on this?
I was thinking that perhaps there could be a lightweight offline bike&foot navigator for Android that used Mapsforge for displaying maps and Brouter for calculating routes, and maybe some extra code for searching addresses. This could work better on low-end phones than OsmAnd. With careful coding, the same code base could be used for generating both an Android application and a desktop Java application.

 Marko

abre...@googlemail.com

unread,
Dec 30, 2014, 9:48:40 AM12/30/14
to osm-android...@googlegroups.com
Hi Marko,

well, Locus-Maps and OruxMaps do display Mapsforge maps and integrate BRouter via the service interface.

For dektop use, check RouteConverter - there's a version that combines mapsforge + brouter + graphhopper

I'm not convinced that inventing a new maptool for Android would be worth the effort...and if, it should use a single file format for both routing and rendering, but that would be something completely new and not a offspin of BRouter...



Marko Mäkelä

unread,
Dec 31, 2014, 8:52:16 AM12/31/14
to osm-android...@googlegroups.com
Hi Arndt,

Thanks for the tips, but both Locus Maps and OruxMaps seem to be closed source.

I am looking for very basic functionality: an offline OSM vector map display and a router for bicycle and pedestrian use. Address search could be optional at the start (it could use WGS84 coordinates). The main goal is that it should work with an older phone that I already have, and it must not crash more often than the Garmin Edge device that I used to use (say, 1 crash every 1000 kilometers of bicycling).

I am not convinced if a new app is worth the effort, either. Nevertheless, I it could be easier to develop something simple than to maintain a fork of OsmAnd.
It looks like there could be an easyish starting point: the Android sample code of Mapsforge.

Norbert Truchsess

unread,
Jan 4, 2015, 7:50:09 PM1/4/15
to osm-android...@googlegroups.com
Hi there,

I've implemented support for BRouter (http://brouter.de/brouter-web/) in
QLandkarteGT (http://www.qlandkarte.org):

https://github.com/ntruchsess/QLandkarteGT/commit/486d31517d97a519ef9a5410e470349229c83d0c

Currently this is not yet merged upstream, so you would have to download the source from my Github-repo (https://github.com/ntruchsess/QLandkarteGT/archive/brouter.zip) and compile (https://github.com/ntruchsess/QLandkarteGT/blob/brouter/INSTALL) yourself.

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

regards,

Norbert
Reply all
Reply to author
Forward
0 new messages