You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`location`: The geographical shape associated to this entity encoded as GeoJSON
45
+
`LineString` or `MultiLineString`. The coordinates shall be obtained from
46
+
the `shapes.txt` feed file as per the value of `shape_id`, `shape_pt_lat`, `shape_pt_lon`, `shape_pt_sequence`.
47
+
48
+
- Attribute type: GeoProperty. `geo:json`
49
+
- Optional
50
+
51
+
-`distanceTravelled`: An array of the distance travelled when reaching each of the points that make the `LineString` or `MultiLineString` that represents this shape. It shall match the
52
+
same number of elements as the corresponding `LineString` or `MultiLineString`.
53
+
54
+
- Attribute type: List of Number if the Shape is defined by a `LineString`. List of List of Number if the Shape is defined by a `MultiLineString`.
55
+
- Optional
56
+
57
+
### Example 1 (Normalized Format)
58
+
59
+
```json
60
+
{
61
+
"id": "urn:ngsi-ld:GtfsShape:S234",
62
+
"type": "GtfsShape",
63
+
"location": {
64
+
"type": "geo:json",
65
+
"value": {
66
+
"type": "LineString",
67
+
"coordinates": [
68
+
[-4.421394, 36.73826],
69
+
[-4.421428, 36.73825],
70
+
[-4.421505, 36.738186],
71
+
[-4.421525, 36.738033]
72
+
]
73
+
}
74
+
},
75
+
"distanceTravelled": {
76
+
"type": "List",
77
+
"value": [
78
+
0,
79
+
6.10,
80
+
9.78
81
+
13.45
82
+
]
83
+
}
84
+
}
85
+
```
86
+
87
+
### Example 2 (?options=keyValues simplified representation for data consumers)
0 commit comments