Skip to content

Commit f26b68a

Browse files
committed
Update docs
1 parent 68fefa2 commit f26b68a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

doc/advanced-topics.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ values. If the latitude and longitude are received as separate measures, the
5858
"entity_type": "GPS",
5959
"resource": "/iot/d",
6060
"protocol": "PDI-IoTA-JSON",
61-
"autocastGeoJSON" : "Point,LineString,Polygon"
6261
..etc
6362
"attributes": [
6463
{
@@ -81,7 +80,7 @@ the following formats:
8180
"name": "location",
8281
"value": "23, 12.5"
8382
}
84-
````
83+
```
8584

8685
- an array of numbers
8786

@@ -104,12 +103,18 @@ the following formats:
104103
}
105104
```
106105

107-
Because GeoJSON types (e.g. `Point`, `LineString` etc.) are native types in NGSI-LD, automatic GeoJSON convertion is switched on for NGSI-LD by default.
106+
Because GeoJSON types (e.g. `Point`, `LineString` etc.) are native types in **NGSI-LD**, automatic GeoJSON convertion is switched on for NGSI-LD by default.
108107

109-
With NGSI-v2, for backwards compatibility reasons, automatic GeoJSON conversion for types other than `geo:json` is turned off by default.
108+
With **NGSI-v2**, for backwards compatibility reasons, automatic GeoJSON conversion for types other than `geo:json` is turned off by default.
110109
Add the `config.autocastGeoJSON` configuration to enable GeoJSON conversion
111110
and supply a comma delimited list of additional types to convert.
112111

112+
```json
113+
{
114+
"autocastGeoJSON" : "Point,LineString,Polygon"
115+
}
116+
```
117+
113118
### Metadata support
114119

115120
Both `attributes` and `static_attributes` may be supplied with metadata when provisioning an IoT Agent, so that the
@@ -157,7 +162,7 @@ following:
157162
- Temporal Properties (e.g. `Datetime`, `Date` , `Time`)
158163
- GeoJSON types (e.g `Point`, `LineString`, `Polygon`, `MultiPoint`, `MultiLineString`, `MultiPolygon`)
159164

160-
Most NGSI-LD attributes are sent to the Context Broker as _properties_. If a GeoJSON type or native JSON type is
165+
Most **NGSI-LD** attributes are sent to the Context Broker as _properties_. If a GeoJSON type or native JSON type is
161166
defined, the data will be converted to the appropriate type. Temporal properties should always be expressed in UTC,
162167
using ISO 8601. This ISO 8601 conversion is applied automatically for the `observedAt` _property-of-a-property_ metadata
163168
where present.

0 commit comments

Comments
 (0)