Commit graph

42 commits

Author SHA1 Message Date
Marcus Jaschen
6d7b8f0d77 Update MIME type for GeoJSON responses
The MIME type for GeoJSON registered with IANA is application/geo+json,
replacing the old value application/vnd.geo+json. The change was published
with RFC 7946 in 2016.

Example request:

`GET /brouter?lonlats=13.377485,52.516247%7C13.351221,52.515004&profile=trekking&alternativeidx=0&format=geojson HTTP/1.1`

Exampe response headers:

```
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Disposition: attachment; filename="brouter.geojson"
Access-Control-Allow-Origin: *
Connection: close
Content-Type: application/geo+json; charset=utf-8
```

References:

- https://www.iana.org/assignments/media-types/application/vnd.geo+json
- https://www.iana.org/assignments/media-types/application/geo+json
- https://datatracker.ietf.org/doc/html/rfc7946#section-12
2024-05-14 21:03:47 +02:00
afischerdev
149b83056e updated output for server 2023-11-20 17:39:29 +01:00
afischerdev
890e7f9824 removed older param handling 2023-10-18 12:50:53 +02:00
Manuel Fuhr
7a6d3bd9d9 Enable PMD rule UseDiamondOperator and fix violations 2023-05-09 23:11:14 +02:00
afischerdev
d43edb311d update import of way point names 2023-04-22 12:46:35 +02:00
afischerdev
4d3edd0571 update interface list for server and app 2023-03-31 15:10:26 +02:00
Manuel Fuhr
30be64cbbe Enable PMD rule LooseCoupling and fix violations 2022-11-14 22:06:18 +01:00
Manuel Fuhr
c75a8cb703 Enable PMD rule UnnecessaryImport and fix violations 2022-11-14 22:06:18 +01:00
afischerdev
54a7ad6b9d update lib part one 2022-11-02 09:37:12 +01:00
Manuel Fuhr
c15913c1ab Reformat whole codebase using Android Studio 2022-07-25 06:14:46 +02:00
Gautier P
93b8d36675 Avoid error if missing poi name 2021-06-06 14:50:29 +02:00
Gautier Pelloux-Prayer
e2d2f6a23d Handle user points of interest 2019-09-30 22:44:20 +02:00
Phyks (Lucas Verney)
af660bf1cf Add an option to export waypoints in GeoJSON tracks 2019-07-20 19:33:55 +02:00
Henrik Fehlauer
451aa25caf Add trackname to description of URL parameters 2019-05-30 23:52:59 +02:00
Arndt Brenschede
c89058ee63 remove special characters in trackname 2019-05-25 18:47:02 +02:00
Arndt Brenschede
ef567095ea nogo-weight undefined fix 2019-05-18 21:35:30 +02:00
Gautier Pelloux-Prayer
4cf86168fe Remove invalid characters from filename 2019-05-11 16:51:39 +02:00
Arndt Brenschede
e94176a4c5 fixed compile problem 2019-05-11 12:28:12 +02:00
abrensch
602839b526
Merge pull request #157 from bagage/fix-filename
Use track name param if set
2019-05-11 12:04:21 +02:00
Gautier Pelloux-Prayer
e487977c20 Use track name param if set 2019-05-09 15:29:01 +02:00
Phyks (Lucas Verney)
c3a4b43085 Fix default nogo weight for polygons 2019-05-08 22:51:07 +02:00
Phyks (Lucas Verney)
9fe0ce6bcb Add support for nogo polygons/polylines custom weight in BRouter server. 2019-02-15 12:11:02 +01:00
Arndt Brenschede
46c114ba1e minor changes to route energy + trackname+param 2018-12-12 23:18:05 +01:00
Phyks (Lucas Verney)
430f2b8603 Add a "trackName" GET parameter to the server part to let users specify
the track name in the output files.
2018-12-12 15:47:08 +01:00
Phyks (Lucas Verney)
3479fd7323 Keep a cost of -1 for nogos which should never been entered to prevent them from being fed in the priority queue 2018-12-11 08:53:43 +01:00
Phyks (Lucas Verney)
910d6a0870 Allow custom nogo weights
This should help taking into account road works for instance.
2018-12-11 08:53:42 +01:00
Phyks (Lucas Verney)
780e865870 Fix JavaDoc errors 2018-12-07 08:59:15 +01:00
Arndt Brenschede
b154851f1f shared profile dir 2018-10-21 11:50:58 +02:00
ntruchsess
a0198e3b34 add support for open nogo-polygons 2018-02-07 20:50:06 +01:00
ntruchsess
1fc6c9e62c fix radius-calculation, clockwise windingnumber and wp-init 2018-01-24 16:05:10 +01:00
ntruchsess
144c0018de fix parsing and generics errors 2018-01-23 23:57:17 +01:00
ntruchsess
f30ba74ac1 add parsing of NogoPolygons to ServerHandler 2018-01-22 23:24:59 +01:00
ntruchsess
77ee79bdc3 decode query-string by standard URLDecoder 2017-12-02 17:17:19 +01:00
Mark Schisler
0a616c70cc handling url encoded parameters 2016-12-02 00:46:38 -06:00
Arndt Brenschede
9d00b0181e performance 2016-09-09 19:42:00 +02:00
Arndt
46db0104e5 performance patches 2014-12-28 08:03:27 +01:00
Norbert Renner
dbc0222784 formatting: replace tabs with spaces 2014-08-23 21:55:45 +02:00
Norbert Renner
76c1641899 add GeoJSON track format 2014-08-23 20:57:16 +02:00
Norbert Renner
2528ca67b6 improve downloading GPX+KML:
- "Content-Disposition: attachment" header with "filename"
- specific mime-types
resolves nrenner/brouter-web#6
2014-08-08 16:00:40 +02:00
Norbert Renner
8827b205e5 CSV download 2014-05-27 10:20:17 +02:00
Norbert Renner
3df98310fb don't pass directory path to client, use prefix instead 2014-05-24 09:52:05 +02:00
Arndt Brenschede
91e62f1164 initial commit of BRouter Version 0.98 2014-01-18 15:29:05 +01:00