Revision 277, 461 bytes
(checked in by daniel, 21 months ago)
|
Output format geometry renewal
|
Line | |
---|
1 | { "type": "FeatureCollection", |
---|
2 | "features": [ |
---|
3 | $edges:{ e | |
---|
4 | \{ "type": "Feature", |
---|
5 | "geometry": \{ |
---|
6 | "type": "LineString", |
---|
7 | "coordinates": [ |
---|
8 | $e.points:{ p | [$p.x$, $p.y$] };separator=","$ |
---|
9 | ] |
---|
10 | \}, |
---|
11 | "crs": \{ |
---|
12 | "type": "EPSG", |
---|
13 | "properties": \{"code": "srid"\} |
---|
14 | \}, |
---|
15 | "properties": \{ |
---|
16 | "id": "$e.id$" |
---|
17 | \} |
---|
18 | \} |
---|
19 | };separator=","$ |
---|
20 | ], |
---|
21 | "status": { |
---|
22 | "code": 200, |
---|
23 | "request": "route" |
---|
24 | }, |
---|
25 | "user": { |
---|
26 | "request_id": "$request_id$" |
---|
27 | } |
---|
28 | } |
---|