{
  "id": "geo_point_2d",
  "kind": "datatype",
  "status": "draft",
  "name": "Opendatasoft geographic point (geo_point_2d)",
  "doc": "Geographic point stored in the geo_point_2d field type of the Opendatasoft data platform (now Huwise), which runs many French and other European open data portals. Datasets often keep the default field name geo_point_2d, usually next to a geo_shape field with the full geometry of the record. The point is a latitude and a longitude in decimal degrees. The Explore API v2.1 returns it as a JSON object with lon and lat members. CSV exports write the latitude, a comma and a space, then the longitude, and the legacy Records API v1 returns a [latitude, longitude] array. This latitude-first order is the opposite of GeoJSON.",
  "parent": "geopoint",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^(?:-?\\d{1,2}(?:\\.\\d+)?, ?-?\\d{1,3}(?:\\.\\d+)?|\\[\\s*-?\\d{1,2}(?:\\.\\d+)?\\s*,\\s*-?\\d{1,3}(?:\\.\\d+)?\\s*\\]|\\{\\s*\"lon\"\\s*:\\s*-?\\d{1,3}(?:\\.\\d+)?\\s*,\\s*\"lat\"\\s*:\\s*-?\\d{1,2}(?:\\.\\d+)?\\s*\\}|\\{\\s*\"lat\"\\s*:\\s*-?\\d{1,2}(?:\\.\\d+)?\\s*,\\s*\"lon\"\\s*:\\s*-?\\d{1,3}(?:\\.\\d+)?\\s*\\})$",
  "examples": [
    {
      "value": "{\"lon\": 55.51277383144647, \"lat\": -21.354091540437363}",
      "description": "Explore API v2.1 JSON, pedestrian crossings on the national roads of La Réunion",
      "valid": true
    },
    {
      "value": "-21.152200178649892, 55.280328656208845",
      "description": "CSV export of the same dataset, latitude first",
      "valid": true
    },
    {
      "value": "[16.1990956313132, -61.54086081933653]",
      "description": "Records API v1, Guadeloupe in the georef-france-region dataset, latitude first",
      "valid": true
    },
    {
      "value": "{\"type\": \"Point\", \"coordinates\": [55.51277383144647, -21.354091540437363]}",
      "description": "GeoJSON geometry, which is the geo_shape form",
      "valid": false
    },
    {
      "value": "POINT (55.51277383144647 -21.354091540437363)",
      "description": "WKT, not a geo_point_2d value",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://help.opendatasoft.com/apis/ods-explore-v2/explore_v2.1.html"
    }
  ],
  "translations": {
    "fr": {
      "name": "Point géographique Opendatasoft (geo_point_2d)"
    },
    "ru": {
      "name": "Географическая точка Opendatasoft (geo_point_2d)"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/geo/geo_point_2d.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/geo/geo_point_2d.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/geo_point_2d.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/geo_point_2d",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/geo_point_2d.json"
  }
}