Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
466 stars 160 forks source link

Documentation issue: Geospatial schema example typo #115

Closed bawilless closed 3 years ago

bawilless commented 3 years ago

In the Geoapatial schema example documentation the telemetry example specifies . . .

{
    "location": {
        "type": "Point",
        "coordinates": [ 47.643742, -122.128014 ]
    }
}

The 'P' in "Point" should be lower case, the correct JSON is . . .

{
    "location": {
    "type": "point",
    "coordinates": [ 47.643742, -122.128014 ]
    }
}
briancr-ms commented 3 years ago

Thanks for your feedback on this. According to the GeoJSON RFC (https://datatracker.ietf.org/doc/html/rfc7946), the property "type" must be one of the GeoJSON types, which include the case-sensitive strings "Point", "MultiPoint", "LineString", etc. Given the description in the RFC, the correct JSON for the GeoJSON Point example is "type": "Point".