# app.citylore.discover.defs

> What CityLore's discovery service returns about public tours.

- Kind: defs
- Authority: discover.citylore.app
- Lexicon: 1
- Published by [citylore.app](https://lexicon.garden/identity/did:plc:yyhpdzesw2vzyuptd54i26dj), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yyhpdzesw2vzyuptd54i26dj/app.citylore.discover.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yyhpdzesw2vzyuptd54i26dj/app.citylore.discover.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yyhpdzesw2vzyuptd54i26dj/app.citylore.discover.defs/analytics)

## #author (`app.citylore.discover.defs#author`)

Type: object

### Properties

- `avatar` (string · uri)
- `did` (string · did, required)
- `displayName` (string)
  - Constraints: maxLength: 640, maxGraphemes: 64
- `handle` (string · handle, required)

## #tourView (`app.citylore.discover.defs#tourView`)

Type: object

A public tour as a list shows it: enough to choose one without loading the whole record.

### Properties

- `area` (string)
  - Constraints: maxLength: 1280, maxGraphemes: 128
- `author` (ref, required)
  - Reference: `#author`
- `cid` (string · cid, required)
- `difficulty` (string)
  - Constraints: maxLength: 32
- `distanceMeters` (integer, required)
  - Constraints: minimum: 0
- `durationMinutes` (integer, required)
  - Constraints: minimum: 1
- `guideStyle` (string)
  - Constraints: maxLength: 64
- `indexedAt` (string · datetime, required)
- `language` (string · language, required)
- `layers` (array, required)
  - Constraints: maxLength: 3
  - `items` (string)
    - Constraints: maxLength: 32, knownValues: walk | narrated | hunt
- `loop` (boolean, required)
- `quietStopCount` (integer): Stops presented quietly (memorials, places of worship).
  - Constraints: minimum: 0
- `ratingAverageTenths` (integer): Average stars times ten (43 = 4.3), weighted towards people who walked the tour. Absent without ratings.
  - Constraints: minimum: 10, maximum: 50
- `ratingCount` (integer, required)
  - Constraints: minimum: 0
- `routePreview` (string): An encoded polyline (precision 5) through the stops, for a small map in lists. Absent for hunts, whose stops stay hidden until found.
  - Constraints: maxLength: 4000
- `start` (ref, required): Where the tour starts. For a hunt this is the only place the list shows.
  - Reference: `community.lexicon.location.geo`
- `stopCount` (integer, required)
  - Constraints: minimum: 1
- `summary` (string)
  - Constraints: maxLength: 6000, maxGraphemes: 600
- `title` (string, required)
  - Constraints: maxLength: 1200, maxGraphemes: 120
- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "author": {
      "properties": {
        "avatar": {
          "format": "uri",
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        }
      },
      "required": [
        "did",
        "handle"
      ],
      "type": "object"
    },
    "tourView": {
      "description": "A public tour as a list shows it: enough to choose one without loading the whole record.",
      "properties": {
        "area": {
          "maxGraphemes": 128,
          "maxLength": 1280,
          "type": "string"
        },
        "author": {
          "ref": "#author",
          "type": "ref"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "difficulty": {
          "maxLength": 32,
          "type": "string"
        },
        "distanceMeters": {
          "minimum": 0,
          "type": "integer"
        },
        "durationMinutes": {
          "minimum": 1,
          "type": "integer"
        },
        "guideStyle": {
          "maxLength": 64,
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "language": {
          "format": "language",
          "type": "string"
        },
        "layers": {
          "items": {
            "knownValues": [
              "walk",
              "narrated",
              "hunt"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "maxLength": 3,
          "type": "array"
        },
        "loop": {
          "type": "boolean"
        },
        "quietStopCount": {
          "description": "Stops presented quietly (memorials, places of worship).",
          "minimum": 0,
          "type": "integer"
        },
        "ratingAverageTenths": {
          "description": "Average stars times ten (43 = 4.3), weighted towards people who walked the tour. Absent without ratings.",
          "maximum": 50,
          "minimum": 10,
          "type": "integer"
        },
        "ratingCount": {
          "minimum": 0,
          "type": "integer"
        },
        "routePreview": {
          "description": "An encoded polyline (precision 5) through the stops, for a small map in lists. Absent for hunts, whose stops stay hidden until found.",
          "maxLength": 4000,
          "type": "string"
        },
        "start": {
          "description": "Where the tour starts. For a hunt this is the only place the list shows.",
          "ref": "community.lexicon.location.geo",
          "type": "ref"
        },
        "stopCount": {
          "minimum": 1,
          "type": "integer"
        },
        "summary": {
          "maxGraphemes": 600,
          "maxLength": 6000,
          "type": "string"
        },
        "title": {
          "maxGraphemes": 120,
          "maxLength": 1200,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "author",
        "title",
        "language",
        "layers",
        "loop",
        "durationMinutes",
        "distanceMeters",
        "stopCount",
        "start",
        "ratingCount",
        "indexedAt"
      ],
      "type": "object"
    }
  },
  "description": "What CityLore's discovery service returns about public tours.",
  "id": "app.citylore.discover.defs",
  "lexicon": 1
}
```
