# app.zeens.getNearbyPhotos

> Published by [zeens.app](https://lexicon.garden/identity/did:plc:pwpuqwge6g7xrjmfbw73uycw)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getNearbyPhotos)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getNearbyPhotos/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getNearbyPhotos/examples)

## Definitions

### `app.zeens.getNearbyPhotos`

**Type**: `query`

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.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `bbox` | `string` | Yes | Viewport bounding box as 'minLng,minLat,maxLng,maxLat' in decimal degrees. |
| `category` | `string` | No | Optional case-insensitive substring filter on postMeta categories, narrowing the viewport pins to one category. |
| `limit` | `integer` | No | Maximum number of pins to return. Most-liked photos win when the box is dense. |

#### Output

**Encoding**: `application/json`

## Raw 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
}
```
