{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Retrieve geotagged Zeens photos inside a geographic bounding box. Powers the Explore map: each result carries its lat/lng (decoded from the int*1e7 stored in postMeta), the first image cid for a thumbnail, the author identity, and the like count for ordering co-located stacks.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "bbox": {
            "description": "Viewport bounding box as 'minLng,minLat,maxLng,maxLat' in decimal degrees.",
            "type": "string"
          },
          "category": {
            "description": "Optional case-insensitive substring filter on postMeta categories, narrowing the viewport pins to one category.",
            "type": "string"
          },
          "limit": {
            "default": 500,
            "description": "Maximum number of pins to return. Most-liked photos win when the box is dense.",
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "bbox"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.postMeta",
      "type": "query"
    }
  },
  "id": "app.zeens.getNearbyPhotos",
  "lexicon": 1
}
