# app.zeens.getNearbyPhotos

> 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.

- Kind: query
- Authority: zeens.app
- Lexicon: 1
- Published by [zeens.app](https://lexicon.garden/identity/did:plc:pwpuqwge6g7xrjmfbw73uycw), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getNearbyPhotos)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getNearbyPhotos/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getNearbyPhotos/analytics)

## Query (`app.zeens.getNearbyPhotos`)

Type: query · GET

### Parameters (query string)

- `bbox` (string, required): Viewport bounding box as 'minLng,minLat,maxLng,maxLat' in decimal degrees.
- `category` (string): Optional case-insensitive substring filter on postMeta categories, narrowing the viewport pins to one category.
- `limit` (integer): Maximum number of pins to return. Most-liked photos win when the box is dense.
  - Constraints: minimum: 1, maximum: 1000, default: 500

### Output (application/json)


## Schema

```json
{
  "$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
}
```
