root/tools/routingservice/trunk/templates/multilinestring_geojson.st

Revision 171, 316 bytes (checked in by anton, 2 years ago)

Output templates

Line 
1{
2        "type":"FeatureCollection",
3        "features":
4        [
5$edges:{ e |
6                \{
7                        "id":"$e.id$",
8                        "properties":\{\},
9                        "type":"Feature",
10                        "geometry":
11                        \{
12                                "type":"MultiLineString",
13                                "coordinates":[[$e.edge$]]
14                        \}
15                \}
16};separator=","$
17        ],
18        "crs":
19        {
20                "properties":
21                {
22                        "code":"$srid$"
23                },
24                "type":"EPSG"
25        }
26}
Note: See TracBrowser for help on using the browser.