Revision 351, 481 bytes
(checked in by anton, 13 months ago)
|
Route geojson template changed
|
Line | |
---|
1 | { "type": "FeatureCollection", |
---|
2 | "features": [ |
---|
3 | $parameters:{ p | |
---|
4 | \{ "type": "Feature", |
---|
5 | "geometry": \{ |
---|
6 | "type": "LineString", |
---|
7 | "coordinates": [ |
---|
8 | $p.line$ |
---|
9 | ] |
---|
10 | \}, |
---|
11 | "crs": \{ |
---|
12 | "type": "EPSG", |
---|
13 | "properties": \{"code": "srid"\} |
---|
14 | \}, |
---|
15 | "properties": \{ |
---|
16 | "id": "$p.id$", |
---|
17 | "length": "$p.rlength$" |
---|
18 | \} |
---|
19 | \} |
---|
20 | };separator=","$ |
---|
21 | ], |
---|
22 | "total": $sum.rlength$, |
---|
23 | "status": { |
---|
24 | "code": 200, |
---|
25 | "request": "route" |
---|
26 | }, |
---|
27 | "user": { |
---|
28 | "request_id": "$request_id$" |
---|
29 | } |
---|
30 | } |
---|