Skip to contents

A GeoJSON object with the type "Feature" is a feature object:

  • A feature object must have a member with the name "geometry". The value of the geometry member is a geometry object as defined above or a JSON null value.

  • A feature object must have a member with the name "properties". The value of the properties member is an object (any JSON object or a JSON null value).

  • If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id".

Examples

'{
  "type": "Feature",
  "properties": {
    "population": 200
  },
  "geometry": {
    "type": "Point",
    "coordinates": [10.724029, 59.926807]
  }
}'
#> [1] "{\n  \"type\": \"Feature\",\n  \"properties\": {\n    \"population\": 200\n  },\n  \"geometry\": {\n    \"type\": \"Point\",\n    \"coordinates\": [10.724029, 59.926807]\n  }\n}"