Browse Source

Mise à jour article BRouter

Phyks (Lucas Verney) 5 months ago
parent
commit
6bba998297

+ 24
- 0
content/2018/11/brouter.md View File

@@ -64,6 +64,18 @@ consumption. `misc/segments4`, `misc/profiles2` and `customprofiles` are
64 64
 folder to store the segments file and the profiles (see below). `17777` is the
65 65
 port to listen on.
66 66
 
67
+**EDIT**: `customprofiles` are profiles written by users and sent to
68
+BRouter-server to use it (through a file upload feature, basically), instead
69
+of limiting the server to the profiles provided by default. In
70
+[Brouter-web](http://brouter.de/brouter-web/), you can access this feature by
71
+clicking the spanner icon on the right hande side. With the previous command
72
+line, uploaded custom profiles will be stored in
73
+`misc/profiles2/customprofiles`. If you host a production BRouter server, it
74
+is probably a good idea to have a `cron` task to periodically wipe the content
75
+of `customprofiles` (or older files in this folder) and to carefully check the
76
+permissions and accesses of files in this folder (as you would do for any file
77
+upload feature).
78
+
67 79
 Your BRouter server is now listening and ready, but we still have to provide
68 80
 it with OSM data (segments files) and profiles. Note that this server simply
69 81
 exposes a HTTP API and there is no frontend on top of it at the moment (we
@@ -100,6 +112,10 @@ done
100 112
 You can put segments files anywhere you want, but you have to provide the path
101 113
 of the segments files to the `java` command-line to start the BRouter server.
102 114
 
115
+**EDIT**: If you are not sure about the segments files to download, you can
116
+call brouter-server for a specific route in the area you want to cover
117
+(`http://localhost:17777/brouter?lonlats=START_LONGITUDE%2CSTART_LATITUE%7CEND_LONGITUDE%2CEND_LATITUDE&profile=trekking&alternativeidx=0&format=geojson`, editing latitude and longitude accordingly) and BRouter will answer you back with the missing segments files names.
118
+
103 119
 
104 120
 ### Building map segments
105 121
 
@@ -237,3 +253,11 @@ server (or you can use `python3 -m http.server` to spawn a webserver serving
237 253
 this content). Head to your web server with your browser
238 254
 (`http://localhost:8000` if you use `python3 -m http.server`) and enjoy your
239 255
 new working BRouter instance!
256
+
257
+**EDIT**: An alternative interface, with a much more modern look and feel (but
258
+fewer advanced features) is
259
+[brouter-online](https://github.com/mekto/brouter-online). It seems to no
260
+longer be maintained, but a fork with updated dependencies and compatibility
261
+with latest BRouter server code is available
262
+[here](https://github.com/phyks/brouter-online). Pull requests are more than
263
+welcome on this one! :)

+ 22
- 1
output/2018/11/setting-up-your-own-brouter-instance-and-start-hacking.html View File

@@ -93,7 +93,7 @@
93 93
     <p>
94 94
       Posted on November 05, 2018 in <a href="https://phyks.me/category/dev.html">Dev</a>
95 95
 
96
-        &#8226; 6 min read
96
+        &#8226; 7 min read
97 97
     </p>
98 98
   </header>
99 99
 
@@ -150,6 +150,17 @@ is available as well). In this command line, <code>-Xmx128M -Xms128M -Xmn8M
150 150
 consumption. <code>misc/segments4</code>, <code>misc/profiles2</code> and <code>customprofiles</code> are
151 151
 folder to store the segments file and the profiles (see below). <code>17777</code> is the
152 152
 port to listen&nbsp;on.</p>
153
+<p><strong><span class="caps">EDIT</span></strong>: <code>customprofiles</code> are profiles written by users and sent to
154
+BRouter-server to use it (through a file upload feature, basically), instead
155
+of limiting the server to the profiles provided by default. In
156
+<a href="http://brouter.de/brouter-web/">Brouter-web</a>, you can access this feature by
157
+clicking the spanner icon on the right hande side. With the previous command
158
+line, uploaded custom profiles will be stored in
159
+<code>misc/profiles2/customprofiles</code>. If you host a production BRouter server, it
160
+is probably a good idea to have a <code>cron</code> task to periodically wipe the content
161
+of <code>customprofiles</code> (or older files in this folder) and to carefully check the
162
+permissions and accesses of files in this folder (as you would do for any file
163
+upload&nbsp;feature).</p>
153 164
 <p>Your BRouter server is now listening and ready, but we still have to provide
154 165
 it with <span class="caps">OSM</span> data (segments files) and profiles. Note that this server simply
155 166
 exposes a <span class="caps">HTTP</span> <span class="caps">API</span> and there is no frontend on top of it at the moment (we
@@ -178,6 +189,9 @@ done
178 189
 
179 190
 <p>You can put segments files anywhere you want, but you have to provide the path
180 191
 of the segments files to the <code>java</code> command-line to start the BRouter&nbsp;server.</p>
192
+<p><strong><span class="caps">EDIT</span></strong>: If you are not sure about the segments files to download, you can
193
+call brouter-server for a specific route in the area you want to cover
194
+(<code>http://localhost:17777/brouter?lonlats=START_LONGITUDE%2CSTART_LATITUE%7CEND_LONGITUDE%2CEND_LATITUDE&amp;profile=trekking&amp;alternativeidx=0&amp;format=geojson</code>, editing latitude and longitude accordingly) and BRouter will answer you back with the missing segments files&nbsp;names.</p>
181 195
 <h3>Building map&nbsp;segments</h3>
182 196
 <p>If you would rather build the map segments on your own, rather than
183 197
 downloading the pre-built one, there is a script in
@@ -291,6 +305,13 @@ server (or you can use <code>python3 -m http.server</code> to spawn a webserver
291 305
 this content). Head to your web server with your browser
292 306
 (<code>http://localhost:8000</code> if you use <code>python3 -m http.server</code>) and enjoy your
293 307
 new working BRouter&nbsp;instance!</p>
308
+<p><strong><span class="caps">EDIT</span></strong>: An alternative interface, with a much more modern look and feel (but
309
+fewer advanced features) is
310
+<a href="https://github.com/mekto/brouter-online">brouter-online</a>. It seems to no
311
+longer be maintained, but a fork with updated dependencies and compatibility
312
+with latest BRouter server code is available
313
+<a href="https://github.com/phyks/brouter-online">here</a>. Pull requests are more than
314
+welcome on this one!&nbsp;:)</p>
294 315
   </div>
295 316
   <div class="tag-cloud">
296 317
     <p>

+ 1
- 1
output/author/phyks.html View File

@@ -89,7 +89,7 @@
89 89
       Posted on November 05, 2018 in <a href="https://phyks.me/category/dev.html">Dev</a>
90 90
 
91 91
 
92
-        &#8226; 6 min read
92
+        &#8226; 7 min read
93 93
     </p>
94 94
   </header>
95 95
   <div>

+ 1
- 1
output/category/dev.html View File

@@ -89,7 +89,7 @@
89 89
       Posted on November 05, 2018 in <a href="https://phyks.me/category/dev.html">Dev</a>
90 90
 
91 91
 
92
-        &#8226; 6 min read
92
+        &#8226; 7 min read
93 93
     </p>
94 94
   </header>
95 95
   <div>

+ 22
- 1
output/feeds/all.atom.xml View File

@@ -56,6 +56,17 @@ is available as well). In this command line, &lt;code&gt;-Xmx128M -Xms128M -Xmn8
56 56
 consumption. &lt;code&gt;misc/segments4&lt;/code&gt;, &lt;code&gt;misc/profiles2&lt;/code&gt; and &lt;code&gt;customprofiles&lt;/code&gt; are
57 57
 folder to store the segments file and the profiles (see below). &lt;code&gt;17777&lt;/code&gt; is the
58 58
 port to listen&amp;nbsp;on.&lt;/p&gt;
59
+&lt;p&gt;&lt;strong&gt;&lt;span class="caps"&gt;EDIT&lt;/span&gt;&lt;/strong&gt;: &lt;code&gt;customprofiles&lt;/code&gt; are profiles written by users and sent to
60
+BRouter-server to use it (through a file upload feature, basically), instead
61
+of limiting the server to the profiles provided by default. In
62
+&lt;a href="http://brouter.de/brouter-web/"&gt;Brouter-web&lt;/a&gt;, you can access this feature by
63
+clicking the spanner icon on the right hande side. With the previous command
64
+line, uploaded custom profiles will be stored in
65
+&lt;code&gt;misc/profiles2/customprofiles&lt;/code&gt;. If you host a production BRouter server, it
66
+is probably a good idea to have a &lt;code&gt;cron&lt;/code&gt; task to periodically wipe the content
67
+of &lt;code&gt;customprofiles&lt;/code&gt; (or older files in this folder) and to carefully check the
68
+permissions and accesses of files in this folder (as you would do for any file
69
+upload&amp;nbsp;feature).&lt;/p&gt;
59 70
 &lt;p&gt;Your BRouter server is now listening and ready, but we still have to provide
60 71
 it with &lt;span class="caps"&gt;OSM&lt;/span&gt; data (segments files) and profiles. Note that this server simply
61 72
 exposes a &lt;span class="caps"&gt;HTTP&lt;/span&gt; &lt;span class="caps"&gt;API&lt;/span&gt; and there is no frontend on top of it at the moment (we
@@ -84,6 +95,9 @@ done
84 95
 
85 96
 &lt;p&gt;You can put segments files anywhere you want, but you have to provide the path
86 97
 of the segments files to the &lt;code&gt;java&lt;/code&gt; command-line to start the BRouter&amp;nbsp;server.&lt;/p&gt;
98
+&lt;p&gt;&lt;strong&gt;&lt;span class="caps"&gt;EDIT&lt;/span&gt;&lt;/strong&gt;: If you are not sure about the segments files to download, you can
99
+call brouter-server for a specific route in the area you want to cover
100
+(&lt;code&gt;http://localhost:17777/brouter?lonlats=START_LONGITUDE%2CSTART_LATITUE%7CEND_LONGITUDE%2CEND_LATITUDE&amp;amp;profile=trekking&amp;amp;alternativeidx=0&amp;amp;format=geojson&lt;/code&gt;, editing latitude and longitude accordingly) and BRouter will answer you back with the missing segments files&amp;nbsp;names.&lt;/p&gt;
87 101
 &lt;h3&gt;Building map&amp;nbsp;segments&lt;/h3&gt;
88 102
 &lt;p&gt;If you would rather build the map segments on your own, rather than
89 103
 downloading the pre-built one, there is a script in
@@ -196,7 +210,14 @@ configuration or the&amp;nbsp;keys.&lt;/p&gt;
196 210
 server (or you can use &lt;code&gt;python3 -m http.server&lt;/code&gt; to spawn a webserver serving
197 211
 this content). Head to your web server with your browser
198 212
 (&lt;code&gt;http://localhost:8000&lt;/code&gt; if you use &lt;code&gt;python3 -m http.server&lt;/code&gt;) and enjoy your
199
-new working BRouter&amp;nbsp;instance!&lt;/p&gt;</content></entry><entry><title>Et si on allait jusqu’à Stockholm en train ?</title><link href="https://phyks.me/2018/10/et-si-on-allait-jusqua-stockholm-en-train.html" rel="alternate"></link><published>2018-10-30T21:12:00+01:00</published><updated>2018-10-30T21:12:00+01:00</updated><author><name>Phyks</name></author><id>tag:phyks.me,2018-10-30:/2018/10/et-si-on-allait-jusqua-stockholm-en-train.html</id><summary type="html">&lt;p&gt;Lorsque j&amp;#8217;ai découvert que le train entre Hambourg et Copenhague embarquait
213
+new working BRouter&amp;nbsp;instance!&lt;/p&gt;
214
+&lt;p&gt;&lt;strong&gt;&lt;span class="caps"&gt;EDIT&lt;/span&gt;&lt;/strong&gt;: An alternative interface, with a much more modern look and feel (but
215
+fewer advanced features) is
216
+&lt;a href="https://github.com/mekto/brouter-online"&gt;brouter-online&lt;/a&gt;. It seems to no
217
+longer be maintained, but a fork with updated dependencies and compatibility
218
+with latest BRouter server code is available
219
+&lt;a href="https://github.com/phyks/brouter-online"&gt;here&lt;/a&gt;. Pull requests are more than
220
+welcome on this one!&amp;nbsp;:)&lt;/p&gt;</content></entry><entry><title>Et si on allait jusqu’à Stockholm en train ?</title><link href="https://phyks.me/2018/10/et-si-on-allait-jusqua-stockholm-en-train.html" rel="alternate"></link><published>2018-10-30T21:12:00+01:00</published><updated>2018-10-30T21:12:00+01:00</updated><author><name>Phyks</name></author><id>tag:phyks.me,2018-10-30:/2018/10/et-si-on-allait-jusqua-stockholm-en-train.html</id><summary type="html">&lt;p&gt;Lorsque j&amp;#8217;ai découvert que le train entre Hambourg et Copenhague embarquait
200 221
 sur un ferry au milieu du trajet, il fallait que je fasse ce trajet ! Et puis,
201 222
 tant qu&amp;#8217;à faire, pourquoi ne pas partir de Paris et aller jusqu&amp;#8217;à Stockholm ?
202 223
 Un peu plus de 2000&amp;nbsp; km en train, parcourus en 12 jours avec des étapes à

+ 22
- 1
output/feeds/dev.atom.xml View File

@@ -56,6 +56,17 @@ is available as well). In this command line, &lt;code&gt;-Xmx128M -Xms128M -Xmn8
56 56
 consumption. &lt;code&gt;misc/segments4&lt;/code&gt;, &lt;code&gt;misc/profiles2&lt;/code&gt; and &lt;code&gt;customprofiles&lt;/code&gt; are
57 57
 folder to store the segments file and the profiles (see below). &lt;code&gt;17777&lt;/code&gt; is the
58 58
 port to listen&amp;nbsp;on.&lt;/p&gt;
59
+&lt;p&gt;&lt;strong&gt;&lt;span class="caps"&gt;EDIT&lt;/span&gt;&lt;/strong&gt;: &lt;code&gt;customprofiles&lt;/code&gt; are profiles written by users and sent to
60
+BRouter-server to use it (through a file upload feature, basically), instead
61
+of limiting the server to the profiles provided by default. In
62
+&lt;a href="http://brouter.de/brouter-web/"&gt;Brouter-web&lt;/a&gt;, you can access this feature by
63
+clicking the spanner icon on the right hande side. With the previous command
64
+line, uploaded custom profiles will be stored in
65
+&lt;code&gt;misc/profiles2/customprofiles&lt;/code&gt;. If you host a production BRouter server, it
66
+is probably a good idea to have a &lt;code&gt;cron&lt;/code&gt; task to periodically wipe the content
67
+of &lt;code&gt;customprofiles&lt;/code&gt; (or older files in this folder) and to carefully check the
68
+permissions and accesses of files in this folder (as you would do for any file
69
+upload&amp;nbsp;feature).&lt;/p&gt;
59 70
 &lt;p&gt;Your BRouter server is now listening and ready, but we still have to provide
60 71
 it with &lt;span class="caps"&gt;OSM&lt;/span&gt; data (segments files) and profiles. Note that this server simply
61 72
 exposes a &lt;span class="caps"&gt;HTTP&lt;/span&gt; &lt;span class="caps"&gt;API&lt;/span&gt; and there is no frontend on top of it at the moment (we
@@ -84,6 +95,9 @@ done
84 95
 
85 96
 &lt;p&gt;You can put segments files anywhere you want, but you have to provide the path
86 97
 of the segments files to the &lt;code&gt;java&lt;/code&gt; command-line to start the BRouter&amp;nbsp;server.&lt;/p&gt;
98
+&lt;p&gt;&lt;strong&gt;&lt;span class="caps"&gt;EDIT&lt;/span&gt;&lt;/strong&gt;: If you are not sure about the segments files to download, you can
99
+call brouter-server for a specific route in the area you want to cover
100
+(&lt;code&gt;http://localhost:17777/brouter?lonlats=START_LONGITUDE%2CSTART_LATITUE%7CEND_LONGITUDE%2CEND_LATITUDE&amp;amp;profile=trekking&amp;amp;alternativeidx=0&amp;amp;format=geojson&lt;/code&gt;, editing latitude and longitude accordingly) and BRouter will answer you back with the missing segments files&amp;nbsp;names.&lt;/p&gt;
87 101
 &lt;h3&gt;Building map&amp;nbsp;segments&lt;/h3&gt;
88 102
 &lt;p&gt;If you would rather build the map segments on your own, rather than
89 103
 downloading the pre-built one, there is a script in
@@ -196,7 +210,14 @@ configuration or the&amp;nbsp;keys.&lt;/p&gt;
196 210
 server (or you can use &lt;code&gt;python3 -m http.server&lt;/code&gt; to spawn a webserver serving
197 211
 this content). Head to your web server with your browser
198 212
 (&lt;code&gt;http://localhost:8000&lt;/code&gt; if you use &lt;code&gt;python3 -m http.server&lt;/code&gt;) and enjoy your
199
-new working BRouter&amp;nbsp;instance!&lt;/p&gt;</content></entry><entry><title>Cycl’Assist 0.3 is out!</title><link href="https://phyks.me/2018/10/cyclassist-03-is-out.html" rel="alternate"></link><published>2018-10-22T11:00:00+02:00</published><updated>2018-10-22T11:00:00+02:00</updated><author><name>Phyks</name></author><id>tag:phyks.me,2018-10-22:/2018/10/cyclassist-03-is-out.html</id><summary type="html">&lt;p&gt;&lt;a href="https://framagit.org/phyks/cyclassist"&gt;Cycl&amp;#8217;Assist&lt;/a&gt; aims to be a webapp
213
+new working BRouter&amp;nbsp;instance!&lt;/p&gt;
214
+&lt;p&gt;&lt;strong&gt;&lt;span class="caps"&gt;EDIT&lt;/span&gt;&lt;/strong&gt;: An alternative interface, with a much more modern look and feel (but
215
+fewer advanced features) is
216
+&lt;a href="https://github.com/mekto/brouter-online"&gt;brouter-online&lt;/a&gt;. It seems to no
217
+longer be maintained, but a fork with updated dependencies and compatibility
218
+with latest BRouter server code is available
219
+&lt;a href="https://github.com/phyks/brouter-online"&gt;here&lt;/a&gt;. Pull requests are more than
220
+welcome on this one!&amp;nbsp;:)&lt;/p&gt;</content></entry><entry><title>Cycl’Assist 0.3 is out!</title><link href="https://phyks.me/2018/10/cyclassist-03-is-out.html" rel="alternate"></link><published>2018-10-22T11:00:00+02:00</published><updated>2018-10-22T11:00:00+02:00</updated><author><name>Phyks</name></author><id>tag:phyks.me,2018-10-22:/2018/10/cyclassist-03-is-out.html</id><summary type="html">&lt;p&gt;&lt;a href="https://framagit.org/phyks/cyclassist"&gt;Cycl&amp;#8217;Assist&lt;/a&gt; aims to be a webapp
200 221
 to ease tracking and reporting issues with bike infrastructures while riding
201 222
 your bike (any danger on the way such as holes in the ground, cars parked like
202 223
 sh*t, road work, etc). You can think of it as Waze for bikes :) Version 0 …&lt;/p&gt;</summary><content type="html">&lt;p&gt;&lt;a href="https://framagit.org/phyks/cyclassist"&gt;Cycl&amp;#8217;Assist&lt;/a&gt; aims to be a webapp

+ 1
- 1
output/index.html View File

@@ -89,7 +89,7 @@
89 89
       Posted on November 05, 2018 in <a href="https://phyks.me/category/dev.html">Dev</a>
90 90
 
91 91
 
92
-        &#8226; 6 min read
92
+        &#8226; 7 min read
93 93
     </p>
94 94
   </header>
95 95
   <div>

+ 4
- 4
output/sitemap.xml View File

@@ -5,28 +5,28 @@ xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
5 5
 
6 6
 <url>
7 7
 <loc>https://phyks.me/</loc>
8
-<lastmod>2018-11-05T23:52:02-00:00</lastmod>
8
+<lastmod>2018-11-07T09:27:00-00:00</lastmod>
9 9
 <changefreq>daily</changefreq>
10 10
 <priority>0.6</priority>
11 11
 </url>
12 12
 
13 13
 <url>
14 14
 <loc>https://phyks.me/archives.html</loc>
15
-<lastmod>2018-11-05T23:52:02-00:00</lastmod>
15
+<lastmod>2018-11-07T09:27:00-00:00</lastmod>
16 16
 <changefreq>daily</changefreq>
17 17
 <priority>0.6</priority>
18 18
 </url>
19 19
 
20 20
 <url>
21 21
 <loc>https://phyks.me/tags.html</loc>
22
-<lastmod>2018-11-05T23:52:02-00:00</lastmod>
22
+<lastmod>2018-11-07T09:27:00-00:00</lastmod>
23 23
 <changefreq>daily</changefreq>
24 24
 <priority>0.6</priority>
25 25
 </url>
26 26
 
27 27
 <url>
28 28
 <loc>https://phyks.me/categories.html</loc>
29
-<lastmod>2018-11-05T23:52:02-00:00</lastmod>
29
+<lastmod>2018-11-07T09:27:00-00:00</lastmod>
30 30
 <changefreq>daily</changefreq>
31 31
 <priority>0.6</priority>
32 32
 </url>