Locus Map - forum

Content & Tools => Tools => Topic started by: jusc on January 02, 2014, 10:44:27

Title: How to download BRouter routing files
Post by: jusc on January 02, 2014, 10:44:27
Update from 26.01.2014
If you use the BRouter app (http://www.dr-brenschede.de/brouter/offline.html. There is a new version 0.98 ;) ) you have to download some routing (rd5) files too. And perhaps the new files for car routing.

Improvement and redesign of download tool for BRouter segment files

You want it a bit easier to download the BRouter files? :-)

Please read carefully.
For Windows users only.


At the moment there are: Batch scripts  for D-A-CH (Germany, Austria, Switzerland), BE-NE-LUX (Belgium, Netherlands, Luxembourg),
Czechia, France, Great Britain (incl. Ireland), Italy and Spain.

1. Download the attached Down-BRouter-Files.zip file and copy it to your target directory, where you want to download later the BRouter files
2. Unzip the zip file
3. Open the command prompt and change to the directory where you unzipped the Down-BRouter-Files.zip
4. Run Start.bat (this will download the two BRouter files for the isle Madeira AND CREATE (ADD) a subdirectory structure to your actually directory
    h2096617.stratoserver.net\brouter\segments2\carsubset
   You may see the download  progress and if you don´t want the to files. you may delete them, but leave the directories untouched!
5. NOW do not start any other batch script, if you have already downloades BRouter files before,
    copy your allready existing *.rd5 files to h2096617.stratoserver.net\brouter\segments2\ (not to carsubset!!!) and
    all existing *.cd5 files to h2096617.stratoserver.net\brouter\segments2\carsubset subdirectoriy

Ready????
6. Now you can start with download your country with the included batch files.
    The BRouter files are only downloaded if the are newer than the files you copied before to the subdirectories.
   Vou may see the information while the batch is running.
   
7. Now you can copy the downloaded *.rd5 files to your BRouter/segments2 directory
    and the downloaded *.cd5 files to BRouter/segments2/carsubset directory at your phone
   
Let me know if it doesn´t work ;-)
Have fun


Title: Re: How to download BRouter routing files
Post by: brotbuexe on January 03, 2014, 06:49:28
Your batch files references the wrong txt file names. Aside this, looks good. Thanks.
Title: Re: How to download BRouter routing files
Post by: jusc on January 03, 2014, 08:19:47
What a shame  :-[, Corrected in first post
Thank you for answer
Title: Re: How to download BRouter routing files
Post by: Christian on January 04, 2014, 20:43:34
Thanx mate. It works and saved me a lot of time.
Title: Re: How to download BRouter routing files
Post by: jusc on January 26, 2014, 16:22:01
Update of first post http://forum.locusmap.eu/index.php?topic=3609.msg25889#msg25889
Title: Re: How to download BRouter routing files
Post by: ta-ka on January 29, 2014, 17:11:20
Hello jusc,

Thank you for sharing the download scripts.
I've created 'Download-Japan.bat' and 'Japan.txt' for downloading BRouter routing files for Japan.

I've also created 'wget_routing_data.sh' for downloading files in linux. This shell script accepts multiple *.txt files. For example to download CZ and D-A-CH routing files, follow the instruction from 1 to 3, then at 4, run shell script as follows.

./wget_routing_data.sh Madeira.txt

Then, follow the instruction 5 and run shell script again as follows for the instruction 6.

./wget_routing_data.sh CZ.txt D-A-CH.txt

Finally follow the instruction 7.
Title: Re: How to download BRouter routing files
Post by: wvb on November 03, 2014, 06:11:54
Hi jusc,
Thanks a lot for the these files!

Is there some easy info to find out which files are needed?
Like layer over Google Maps or OSM that shows a grid with the tiles info, or a list somewhere?

I would like to understand how you knew which files to select.

Thanks,
Grtz,
W.

Sent from my C6903 using Tapatalk

Title: Re: How to download BRouter routing files
Post by: szebenyib on November 03, 2014, 07:54:52
In the play store version there is a map for that, precisely as you described. It worked for me like a charm.