{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://living-bread.org/protocol/v0.1/place.schema.json",
  "title": "Kingdom Protocol v0.1: Place",
  "description": "A region where prayers were left at public places: a three character geohash cell, about 150 km across, shown only when three or more different people prayed there, never in a closed land, never a point.",
  "type": "object",
  "required": [
    "cell"
  ],
  "properties": {
    "cell": {
      "description": "Geohash, three characters",
      "type": "string"
    },
    "lat": {
      "description": "Region centre, one decimal",
      "type": [
        "number",
        "null"
      ]
    },
    "lon": {
      "description": "Region centre, one decimal",
      "type": [
        "number",
        "null"
      ]
    },
    "people": {
      "description": "Distinct people, three or more",
      "type": [
        "integer",
        "null"
      ]
    },
    "prayers": {
      "description": "Prayers left",
      "type": [
        "integer",
        "null"
      ]
    },
    "last_at": {
      "description": "Most recent",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "additionalProperties": true,
  "x-lb-urn": "lb:place:gh-<geohash3> (prayer regions) and lb:city:<region>-<city> (the registry)",
  "x-lb-schema-org": "https://schema.org/Place",
  "x-lb-door": "/api/places",
  "x-lb-license": "Directory data CC BY 4.0. Words written by people remain theirs; quote with attribution."
}