{
  "openapi": "3.1.0",
  "info": {
    "title": "Fairplace API",
    "version": "1.0.0",
    "description": "The /v1 API used by the Fairplace web app, the iPhone app and, later, API customers. Changes within /v1 are additive only (ADR 0006): new routes, new response fields and new optional request fields. Enums are open: handle unknown values of `status`, `error`, `code`, `category` and `mode`, because new ones can appear without a version change."
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "A participant or host token from create or join."
      },
      "appCheck": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Firebase-AppCheck",
        "description": "A Firebase App Check token. Only Fairplace's own web and iPhone apps can get one."
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "A partner API key issued by Fairplace."
      }
    },
    "schemas": {}
  },
  "paths": {
    "/v1/sessions": {
      "post": {
        "summary": "Start a meetup",
        "tags": [
          "Sessions"
        ],
        "description": "Creates a meetup with the host's start point and travel mode, and what it is for: a `category`, free text in `query`, or both. Returns the session, a `hostToken` (needed to change the meetup) and a `participantToken` (the host's own seat). Share the session `id` with the other person so they can join. The host's location is stored only to compute travel times and is never returned to anyone. Fairplace works in the United States for now. Errors: `outside_us` (400) when the start point is outside the US.\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 10 requests per hour per IP (per key for partners).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "location",
                  "mode"
                ],
                "anyOf": [
                  {
                    "required": [
                      "query"
                    ]
                  },
                  {
                    "required": [
                      "category"
                    ]
                  }
                ],
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Shown to the other people in the meetup."
                  },
                  "location": {
                    "type": "object",
                    "required": [
                      "lat",
                      "lng"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "lat": {
                        "type": "number",
                        "minimum": -90,
                        "maximum": 90
                      },
                      "lng": {
                        "type": "number",
                        "minimum": -180,
                        "maximum": 180
                      }
                    },
                    "description": "Where this person starts from. Used only to compute travel times; never returned."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "drive",
                      "walk",
                      "bike",
                      "transit"
                    ],
                    "description": "How this person travels."
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 60,
                    "description": "Free text, such as \"ramen\" or \"quiet bar\"."
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "coffee",
                      "bar",
                      "food_grab_and_go",
                      "food_quick",
                      "food_casual",
                      "food_fine",
                      "park"
                    ],
                    "description": "Limits the search to one kind of place."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "session",
                    "hostToken",
                    "participantToken"
                  ],
                  "properties": {
                    "session": {
                      "type": "object",
                      "required": [
                        "id",
                        "query",
                        "category",
                        "status",
                        "error",
                        "retryAt",
                        "me",
                        "participants",
                        "maxParticipants",
                        "startsApartKm",
                        "results",
                        "widened",
                        "noResultsReason",
                        "pickedVenueId",
                        "pickedBy",
                        "createdAt",
                        "expiresAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "query": {
                          "type": "string",
                          "description": "Free text, or \"\" when only a category was chosen."
                        },
                        "category": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "enum": [
                            "coffee",
                            "bar",
                            "food_grab_and_go",
                            "food_quick",
                            "food_casual",
                            "food_fine",
                            "park",
                            null
                          ],
                          "description": "What the search was limited to. Null for free-text meetups."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "waiting",
                            "computing",
                            "ready",
                            "no_results",
                            "error"
                          ],
                          "description": "waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error."
                        },
                        "error": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "enum": [
                            "busy",
                            "failed",
                            null
                          ],
                          "description": "Set when status is \"error\". \"busy\" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); \"failed\" can be retried."
                        },
                        "retryAt": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "format": "date-time",
                          "description": "With error \"busy\": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise."
                        },
                        "me": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "id",
                                "role"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string",
                                  "enum": [
                                    "host",
                                    "guest"
                                  ]
                                },
                                "feedback": {
                                  "description": "My own answer to \"Did this spot feel fair to you?\". Never shown to the other person.",
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "required": [
                                        "venueId",
                                        "rating",
                                        "comment"
                                      ],
                                      "properties": {
                                        "venueId": {
                                          "type": "string"
                                        },
                                        "rating": {
                                          "type": "string",
                                          "enum": [
                                            "yes",
                                            "somewhat",
                                            "no"
                                          ]
                                        },
                                        "comment": {
                                          "type": [
                                            "null",
                                            "string"
                                          ]
                                        }
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "participants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "role",
                              "mode"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "null",
                                  "string"
                                ]
                              },
                              "role": {
                                "type": "string",
                                "enum": [
                                  "host",
                                  "guest"
                                ]
                              },
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "drive",
                                  "walk",
                                  "bike",
                                  "transit"
                                ]
                              }
                            }
                          }
                        },
                        "maxParticipants": {
                          "type": "integer",
                          "description": "How many people the meetup takes, host included."
                        },
                        "startsApartKm": {
                          "type": [
                            "null",
                            "integer"
                          ],
                          "description": "Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone."
                        },
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "rank",
                              "venue",
                              "fairness",
                              "travel"
                            ],
                            "properties": {
                              "rank": {
                                "type": "integer",
                                "description": "1 is the best balance of fair and good."
                              },
                              "venue": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "name",
                                  "location"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The place ID (a Google place ID). Send it to pick, feedback and directions."
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "location": {
                                    "type": "object",
                                    "required": [
                                      "lat",
                                      "lng"
                                    ],
                                    "properties": {
                                      "lat": {
                                        "type": "number"
                                      },
                                      "lng": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "address": {
                                    "type": "string"
                                  },
                                  "rating": {
                                    "type": "number"
                                  },
                                  "userRatingCount": {
                                    "type": "integer"
                                  },
                                  "priceLevel": {
                                    "type": "string"
                                  },
                                  "primaryType": {
                                    "type": "string",
                                    "description": "The place type, such as \"wine_bar\" or \"fast_food_restaurant\"."
                                  },
                                  "mapsUri": {
                                    "type": "string",
                                    "description": "Opens the place in Google Maps."
                                  },
                                  "opensAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "description": "Only on a place that is closed now: when it next opens."
                                  }
                                }
                              },
                              "fairness": {
                                "type": "object",
                                "required": [
                                  "score",
                                  "maxMinutes",
                                  "spreadMinutes"
                                ],
                                "properties": {
                                  "score": {
                                    "type": "number",
                                    "description": "0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time."
                                  },
                                  "maxMinutes": {
                                    "type": "number",
                                    "description": "The longest trip, in minutes."
                                  },
                                  "spreadMinutes": {
                                    "type": "number",
                                    "description": "Longest trip minus shortest, in minutes."
                                  }
                                }
                              },
                              "travel": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "participantId",
                                    "mode",
                                    "minutes"
                                  ],
                                  "properties": {
                                    "participantId": {
                                      "type": "string"
                                    },
                                    "mode": {
                                      "type": "string",
                                      "enum": [
                                        "drive",
                                        "walk",
                                        "bike",
                                        "transit"
                                      ],
                                      "description": "The travel mode this person chose."
                                    },
                                    "fallbackMode": {
                                      "type": "string",
                                      "enum": [
                                        "drive"
                                      ],
                                      "description": "Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show \"by car\" instead of `mode`."
                                    },
                                    "minutes": {
                                      "type": "number",
                                      "description": "Travel time from this person's start point, by `fallbackMode` when it is set."
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "widened": {
                          "type": "boolean",
                          "description": "The first search found too few places, so these come from a wider area and may be less fair."
                        },
                        "noResultsReason": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "enum": [
                            "no_venues",
                            "unreachable",
                            null
                          ],
                          "description": "Set only when status is \"no_results\". \"no_venues\": no open places of that kind matched. \"unreachable\": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as \"no_venues\"."
                        },
                        "pickedVenueId": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "The venue.id someone picked, or null."
                        },
                        "pickedBy": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "The participant ID of whoever picked."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "After this the meetup and everyone's start points are deleted."
                        }
                      }
                    },
                    "hostToken": {
                      "type": "string",
                      "description": "Lets the host change the meetup. Keep it secret."
                    },
                    "participantToken": {
                      "type": "string",
                      "description": "The host's own seat: send it to read, pick and give feedback. Keep it secret."
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{id}": {
      "get": {
        "summary": "Get a meetup",
        "tags": [
          "Sessions"
        ],
        "description": "The current state of a meetup: who has joined (names only), `status`, the ranked results and the pick. Poll this while `status` is `computing`. Send your participant token as a bearer token to get your own `me` entry; without one, `me` is null. A leg with `fallbackMode: \"drive\"` means transit or bike reached none of the places, so that person's minutes are by car. When `status` is `no_results`, `noResultsReason` says whether no places matched or none could be reached. Never includes anyone's start point. Replies with `Cache-Control: no-store`. Errors: `session_not_found` (404) when it never existed or has expired.\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 120 requests per minute per IP (per key for partners).",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "security": [
          {
            "appCheck": [],
            "bearerAuth": []
          },
          {
            "apiKey": [],
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "query",
                    "category",
                    "status",
                    "error",
                    "retryAt",
                    "me",
                    "participants",
                    "maxParticipants",
                    "startsApartKm",
                    "results",
                    "widened",
                    "noResultsReason",
                    "pickedVenueId",
                    "pickedBy",
                    "createdAt",
                    "expiresAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "query": {
                      "type": "string",
                      "description": "Free text, or \"\" when only a category was chosen."
                    },
                    "category": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "coffee",
                        "bar",
                        "food_grab_and_go",
                        "food_quick",
                        "food_casual",
                        "food_fine",
                        "park",
                        null
                      ],
                      "description": "What the search was limited to. Null for free-text meetups."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "waiting",
                        "computing",
                        "ready",
                        "no_results",
                        "error"
                      ],
                      "description": "waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error."
                    },
                    "error": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "busy",
                        "failed",
                        null
                      ],
                      "description": "Set when status is \"error\". \"busy\" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); \"failed\" can be retried."
                    },
                    "retryAt": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "format": "date-time",
                      "description": "With error \"busy\": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise."
                    },
                    "me": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "role"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "role": {
                              "type": "string",
                              "enum": [
                                "host",
                                "guest"
                              ]
                            },
                            "feedback": {
                              "description": "My own answer to \"Did this spot feel fair to you?\". Never shown to the other person.",
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "venueId",
                                    "rating",
                                    "comment"
                                  ],
                                  "properties": {
                                    "venueId": {
                                      "type": "string"
                                    },
                                    "rating": {
                                      "type": "string",
                                      "enum": [
                                        "yes",
                                        "somewhat",
                                        "no"
                                      ]
                                    },
                                    "comment": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "participants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "role",
                          "mode"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "host",
                              "guest"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "drive",
                              "walk",
                              "bike",
                              "transit"
                            ]
                          }
                        }
                      }
                    },
                    "maxParticipants": {
                      "type": "integer",
                      "description": "How many people the meetup takes, host included."
                    },
                    "startsApartKm": {
                      "type": [
                        "null",
                        "integer"
                      ],
                      "description": "Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone."
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "rank",
                          "venue",
                          "fairness",
                          "travel"
                        ],
                        "properties": {
                          "rank": {
                            "type": "integer",
                            "description": "1 is the best balance of fair and good."
                          },
                          "venue": {
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "location"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The place ID (a Google place ID). Send it to pick, feedback and directions."
                              },
                              "name": {
                                "type": "string"
                              },
                              "location": {
                                "type": "object",
                                "required": [
                                  "lat",
                                  "lng"
                                ],
                                "properties": {
                                  "lat": {
                                    "type": "number"
                                  },
                                  "lng": {
                                    "type": "number"
                                  }
                                }
                              },
                              "address": {
                                "type": "string"
                              },
                              "rating": {
                                "type": "number"
                              },
                              "userRatingCount": {
                                "type": "integer"
                              },
                              "priceLevel": {
                                "type": "string"
                              },
                              "primaryType": {
                                "type": "string",
                                "description": "The place type, such as \"wine_bar\" or \"fast_food_restaurant\"."
                              },
                              "mapsUri": {
                                "type": "string",
                                "description": "Opens the place in Google Maps."
                              },
                              "opensAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Only on a place that is closed now: when it next opens."
                              }
                            }
                          },
                          "fairness": {
                            "type": "object",
                            "required": [
                              "score",
                              "maxMinutes",
                              "spreadMinutes"
                            ],
                            "properties": {
                              "score": {
                                "type": "number",
                                "description": "0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time."
                              },
                              "maxMinutes": {
                                "type": "number",
                                "description": "The longest trip, in minutes."
                              },
                              "spreadMinutes": {
                                "type": "number",
                                "description": "Longest trip minus shortest, in minutes."
                              }
                            }
                          },
                          "travel": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "participantId",
                                "mode",
                                "minutes"
                              ],
                              "properties": {
                                "participantId": {
                                  "type": "string"
                                },
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "drive",
                                    "walk",
                                    "bike",
                                    "transit"
                                  ],
                                  "description": "The travel mode this person chose."
                                },
                                "fallbackMode": {
                                  "type": "string",
                                  "enum": [
                                    "drive"
                                  ],
                                  "description": "Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show \"by car\" instead of `mode`."
                                },
                                "minutes": {
                                  "type": "number",
                                  "description": "Travel time from this person's start point, by `fallbackMode` when it is set."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "widened": {
                      "type": "boolean",
                      "description": "The first search found too few places, so these come from a wider area and may be less fair."
                    },
                    "noResultsReason": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "no_venues",
                        "unreachable",
                        null
                      ],
                      "description": "Set only when status is \"no_results\". \"no_venues\": no open places of that kind matched. \"unreachable\": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as \"no_venues\"."
                    },
                    "pickedVenueId": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The venue.id someone picked, or null."
                    },
                    "pickedBy": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The participant ID of whoever picked."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "After this the meetup and everyone's start points are deleted."
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Change what the meetup is for",
        "tags": [
          "Sessions"
        ],
        "description": "Host only (send the `hostToken`). Changes the `category`, the free-text `query`, or both, and recomputes the results when everyone is in. Errors: `not_the_host` (403), `too_many_recomputes` (429).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 20 requests per hour per IP (per key for partners).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "anyOf": [
                  {
                    "required": [
                      "query"
                    ]
                  },
                  {
                    "required": [
                      "category"
                    ]
                  }
                ],
                "additionalProperties": false,
                "properties": {
                  "query": {
                    "type": "string",
                    "maxLength": 60,
                    "description": "Free text, such as \"ramen\" or \"quiet bar\"."
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "coffee",
                      "bar",
                      "food_grab_and_go",
                      "food_quick",
                      "food_casual",
                      "food_fine",
                      "park"
                    ],
                    "description": "Limits the search to one kind of place."
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "security": [
          {
            "appCheck": [],
            "bearerAuth": []
          },
          {
            "apiKey": [],
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "query",
                    "category",
                    "status",
                    "error",
                    "retryAt",
                    "me",
                    "participants",
                    "maxParticipants",
                    "startsApartKm",
                    "results",
                    "widened",
                    "noResultsReason",
                    "pickedVenueId",
                    "pickedBy",
                    "createdAt",
                    "expiresAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "query": {
                      "type": "string",
                      "description": "Free text, or \"\" when only a category was chosen."
                    },
                    "category": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "coffee",
                        "bar",
                        "food_grab_and_go",
                        "food_quick",
                        "food_casual",
                        "food_fine",
                        "park",
                        null
                      ],
                      "description": "What the search was limited to. Null for free-text meetups."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "waiting",
                        "computing",
                        "ready",
                        "no_results",
                        "error"
                      ],
                      "description": "waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error."
                    },
                    "error": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "busy",
                        "failed",
                        null
                      ],
                      "description": "Set when status is \"error\". \"busy\" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); \"failed\" can be retried."
                    },
                    "retryAt": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "format": "date-time",
                      "description": "With error \"busy\": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise."
                    },
                    "me": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "role"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "role": {
                              "type": "string",
                              "enum": [
                                "host",
                                "guest"
                              ]
                            },
                            "feedback": {
                              "description": "My own answer to \"Did this spot feel fair to you?\". Never shown to the other person.",
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "venueId",
                                    "rating",
                                    "comment"
                                  ],
                                  "properties": {
                                    "venueId": {
                                      "type": "string"
                                    },
                                    "rating": {
                                      "type": "string",
                                      "enum": [
                                        "yes",
                                        "somewhat",
                                        "no"
                                      ]
                                    },
                                    "comment": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "participants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "role",
                          "mode"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "host",
                              "guest"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "drive",
                              "walk",
                              "bike",
                              "transit"
                            ]
                          }
                        }
                      }
                    },
                    "maxParticipants": {
                      "type": "integer",
                      "description": "How many people the meetup takes, host included."
                    },
                    "startsApartKm": {
                      "type": [
                        "null",
                        "integer"
                      ],
                      "description": "Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone."
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "rank",
                          "venue",
                          "fairness",
                          "travel"
                        ],
                        "properties": {
                          "rank": {
                            "type": "integer",
                            "description": "1 is the best balance of fair and good."
                          },
                          "venue": {
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "location"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The place ID (a Google place ID). Send it to pick, feedback and directions."
                              },
                              "name": {
                                "type": "string"
                              },
                              "location": {
                                "type": "object",
                                "required": [
                                  "lat",
                                  "lng"
                                ],
                                "properties": {
                                  "lat": {
                                    "type": "number"
                                  },
                                  "lng": {
                                    "type": "number"
                                  }
                                }
                              },
                              "address": {
                                "type": "string"
                              },
                              "rating": {
                                "type": "number"
                              },
                              "userRatingCount": {
                                "type": "integer"
                              },
                              "priceLevel": {
                                "type": "string"
                              },
                              "primaryType": {
                                "type": "string",
                                "description": "The place type, such as \"wine_bar\" or \"fast_food_restaurant\"."
                              },
                              "mapsUri": {
                                "type": "string",
                                "description": "Opens the place in Google Maps."
                              },
                              "opensAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Only on a place that is closed now: when it next opens."
                              }
                            }
                          },
                          "fairness": {
                            "type": "object",
                            "required": [
                              "score",
                              "maxMinutes",
                              "spreadMinutes"
                            ],
                            "properties": {
                              "score": {
                                "type": "number",
                                "description": "0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time."
                              },
                              "maxMinutes": {
                                "type": "number",
                                "description": "The longest trip, in minutes."
                              },
                              "spreadMinutes": {
                                "type": "number",
                                "description": "Longest trip minus shortest, in minutes."
                              }
                            }
                          },
                          "travel": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "participantId",
                                "mode",
                                "minutes"
                              ],
                              "properties": {
                                "participantId": {
                                  "type": "string"
                                },
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "drive",
                                    "walk",
                                    "bike",
                                    "transit"
                                  ],
                                  "description": "The travel mode this person chose."
                                },
                                "fallbackMode": {
                                  "type": "string",
                                  "enum": [
                                    "drive"
                                  ],
                                  "description": "Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show \"by car\" instead of `mode`."
                                },
                                "minutes": {
                                  "type": "number",
                                  "description": "Travel time from this person's start point, by `fallbackMode` when it is set."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "widened": {
                      "type": "boolean",
                      "description": "The first search found too few places, so these come from a wider area and may be less fair."
                    },
                    "noResultsReason": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "no_venues",
                        "unreachable",
                        null
                      ],
                      "description": "Set only when status is \"no_results\". \"no_venues\": no open places of that kind matched. \"unreachable\": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as \"no_venues\"."
                    },
                    "pickedVenueId": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The venue.id someone picked, or null."
                    },
                    "pickedBy": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The participant ID of whoever picked."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "After this the meetup and everyone's start points are deleted."
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{id}/participants": {
      "post": {
        "summary": "Join a meetup",
        "tags": [
          "Sessions"
        ],
        "description": "Adds the guest with their start point and travel mode, and returns their `participantToken`. When everyone is in, the fair places are computed before the reply, so the session usually comes back `ready`; with real travel times that can take 10 seconds or more, so show a progress screen as soon as the request is sent. `startsApartKm` is set when the two starts are more than 150 km apart. Send an `Idempotency-Key` header and reuse it when you retry after a dropped connection: if the first attempt went through, the retry returns the same seat and `participantToken` (and the session as it is now, possibly still `computing`, so poll it) instead of `session_full`. Errors: `outside_us` (400) when the start point is outside the US, `session_full` (409), `session_not_found` (404), `too_many_recomputes` (429).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 20 requests per hour per IP (per key for partners).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "location",
                  "mode"
                ],
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Shown to the other people in the meetup."
                  },
                  "location": {
                    "type": "object",
                    "required": [
                      "lat",
                      "lng"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "lat": {
                        "type": "number",
                        "minimum": -90,
                        "maximum": 90
                      },
                      "lng": {
                        "type": "number",
                        "minimum": -180,
                        "maximum": 180
                      }
                    },
                    "description": "Where this person starts from. Used only to compute travel times; never returned."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "drive",
                      "walk",
                      "bike",
                      "transit"
                    ],
                    "description": "How this person travels."
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{32,128}$"
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "description": "Optional. A random value (such as a UUID) made once per join attempt and sent again on every retry of it. A retry of a join that already went through returns the same seat and `participantToken` instead of `session_full`. Keep it as secret as the token."
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "session",
                    "participantToken"
                  ],
                  "properties": {
                    "session": {
                      "type": "object",
                      "required": [
                        "id",
                        "query",
                        "category",
                        "status",
                        "error",
                        "retryAt",
                        "me",
                        "participants",
                        "maxParticipants",
                        "startsApartKm",
                        "results",
                        "widened",
                        "noResultsReason",
                        "pickedVenueId",
                        "pickedBy",
                        "createdAt",
                        "expiresAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "query": {
                          "type": "string",
                          "description": "Free text, or \"\" when only a category was chosen."
                        },
                        "category": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "enum": [
                            "coffee",
                            "bar",
                            "food_grab_and_go",
                            "food_quick",
                            "food_casual",
                            "food_fine",
                            "park",
                            null
                          ],
                          "description": "What the search was limited to. Null for free-text meetups."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "waiting",
                            "computing",
                            "ready",
                            "no_results",
                            "error"
                          ],
                          "description": "waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error."
                        },
                        "error": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "enum": [
                            "busy",
                            "failed",
                            null
                          ],
                          "description": "Set when status is \"error\". \"busy\" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); \"failed\" can be retried."
                        },
                        "retryAt": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "format": "date-time",
                          "description": "With error \"busy\": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise."
                        },
                        "me": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "id",
                                "role"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string",
                                  "enum": [
                                    "host",
                                    "guest"
                                  ]
                                },
                                "feedback": {
                                  "description": "My own answer to \"Did this spot feel fair to you?\". Never shown to the other person.",
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "required": [
                                        "venueId",
                                        "rating",
                                        "comment"
                                      ],
                                      "properties": {
                                        "venueId": {
                                          "type": "string"
                                        },
                                        "rating": {
                                          "type": "string",
                                          "enum": [
                                            "yes",
                                            "somewhat",
                                            "no"
                                          ]
                                        },
                                        "comment": {
                                          "type": [
                                            "null",
                                            "string"
                                          ]
                                        }
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "participants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "role",
                              "mode"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "null",
                                  "string"
                                ]
                              },
                              "role": {
                                "type": "string",
                                "enum": [
                                  "host",
                                  "guest"
                                ]
                              },
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "drive",
                                  "walk",
                                  "bike",
                                  "transit"
                                ]
                              }
                            }
                          }
                        },
                        "maxParticipants": {
                          "type": "integer",
                          "description": "How many people the meetup takes, host included."
                        },
                        "startsApartKm": {
                          "type": [
                            "null",
                            "integer"
                          ],
                          "description": "Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone."
                        },
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "rank",
                              "venue",
                              "fairness",
                              "travel"
                            ],
                            "properties": {
                              "rank": {
                                "type": "integer",
                                "description": "1 is the best balance of fair and good."
                              },
                              "venue": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "name",
                                  "location"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The place ID (a Google place ID). Send it to pick, feedback and directions."
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "location": {
                                    "type": "object",
                                    "required": [
                                      "lat",
                                      "lng"
                                    ],
                                    "properties": {
                                      "lat": {
                                        "type": "number"
                                      },
                                      "lng": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "address": {
                                    "type": "string"
                                  },
                                  "rating": {
                                    "type": "number"
                                  },
                                  "userRatingCount": {
                                    "type": "integer"
                                  },
                                  "priceLevel": {
                                    "type": "string"
                                  },
                                  "primaryType": {
                                    "type": "string",
                                    "description": "The place type, such as \"wine_bar\" or \"fast_food_restaurant\"."
                                  },
                                  "mapsUri": {
                                    "type": "string",
                                    "description": "Opens the place in Google Maps."
                                  },
                                  "opensAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "description": "Only on a place that is closed now: when it next opens."
                                  }
                                }
                              },
                              "fairness": {
                                "type": "object",
                                "required": [
                                  "score",
                                  "maxMinutes",
                                  "spreadMinutes"
                                ],
                                "properties": {
                                  "score": {
                                    "type": "number",
                                    "description": "0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time."
                                  },
                                  "maxMinutes": {
                                    "type": "number",
                                    "description": "The longest trip, in minutes."
                                  },
                                  "spreadMinutes": {
                                    "type": "number",
                                    "description": "Longest trip minus shortest, in minutes."
                                  }
                                }
                              },
                              "travel": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "participantId",
                                    "mode",
                                    "minutes"
                                  ],
                                  "properties": {
                                    "participantId": {
                                      "type": "string"
                                    },
                                    "mode": {
                                      "type": "string",
                                      "enum": [
                                        "drive",
                                        "walk",
                                        "bike",
                                        "transit"
                                      ],
                                      "description": "The travel mode this person chose."
                                    },
                                    "fallbackMode": {
                                      "type": "string",
                                      "enum": [
                                        "drive"
                                      ],
                                      "description": "Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show \"by car\" instead of `mode`."
                                    },
                                    "minutes": {
                                      "type": "number",
                                      "description": "Travel time from this person's start point, by `fallbackMode` when it is set."
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "widened": {
                          "type": "boolean",
                          "description": "The first search found too few places, so these come from a wider area and may be less fair."
                        },
                        "noResultsReason": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "enum": [
                            "no_venues",
                            "unreachable",
                            null
                          ],
                          "description": "Set only when status is \"no_results\". \"no_venues\": no open places of that kind matched. \"unreachable\": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as \"no_venues\"."
                        },
                        "pickedVenueId": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "The venue.id someone picked, or null."
                        },
                        "pickedBy": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "The participant ID of whoever picked."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "After this the meetup and everyone's start points are deleted."
                        }
                      }
                    },
                    "participantToken": {
                      "type": "string",
                      "description": "Your seat in the meetup. Keep it secret."
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{id}/participants/me": {
      "patch": {
        "summary": "Update my details",
        "tags": [
          "Sessions"
        ],
        "description": "Changes your own name, start point or travel mode (send at least one). Results are recomputed when your start point or mode actually changes and everyone is in; each recompute counts toward the meetup's limit of 5 computations. Errors: `outside_us` (400) when the new start point is outside the US, `not_a_participant` (403), `too_many_recomputes` (429).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 20 requests per hour per IP (per key for partners).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "minProperties": 1,
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Shown to the other people in the meetup."
                  },
                  "location": {
                    "type": "object",
                    "required": [
                      "lat",
                      "lng"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "lat": {
                        "type": "number",
                        "minimum": -90,
                        "maximum": 90
                      },
                      "lng": {
                        "type": "number",
                        "minimum": -180,
                        "maximum": 180
                      }
                    },
                    "description": "Where this person starts from. Used only to compute travel times; never returned."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "drive",
                      "walk",
                      "bike",
                      "transit"
                    ],
                    "description": "How this person travels."
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "security": [
          {
            "appCheck": [],
            "bearerAuth": []
          },
          {
            "apiKey": [],
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "query",
                    "category",
                    "status",
                    "error",
                    "retryAt",
                    "me",
                    "participants",
                    "maxParticipants",
                    "startsApartKm",
                    "results",
                    "widened",
                    "noResultsReason",
                    "pickedVenueId",
                    "pickedBy",
                    "createdAt",
                    "expiresAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "query": {
                      "type": "string",
                      "description": "Free text, or \"\" when only a category was chosen."
                    },
                    "category": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "coffee",
                        "bar",
                        "food_grab_and_go",
                        "food_quick",
                        "food_casual",
                        "food_fine",
                        "park",
                        null
                      ],
                      "description": "What the search was limited to. Null for free-text meetups."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "waiting",
                        "computing",
                        "ready",
                        "no_results",
                        "error"
                      ],
                      "description": "waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error."
                    },
                    "error": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "busy",
                        "failed",
                        null
                      ],
                      "description": "Set when status is \"error\". \"busy\" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); \"failed\" can be retried."
                    },
                    "retryAt": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "format": "date-time",
                      "description": "With error \"busy\": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise."
                    },
                    "me": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "role"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "role": {
                              "type": "string",
                              "enum": [
                                "host",
                                "guest"
                              ]
                            },
                            "feedback": {
                              "description": "My own answer to \"Did this spot feel fair to you?\". Never shown to the other person.",
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "venueId",
                                    "rating",
                                    "comment"
                                  ],
                                  "properties": {
                                    "venueId": {
                                      "type": "string"
                                    },
                                    "rating": {
                                      "type": "string",
                                      "enum": [
                                        "yes",
                                        "somewhat",
                                        "no"
                                      ]
                                    },
                                    "comment": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "participants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "role",
                          "mode"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "host",
                              "guest"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "drive",
                              "walk",
                              "bike",
                              "transit"
                            ]
                          }
                        }
                      }
                    },
                    "maxParticipants": {
                      "type": "integer",
                      "description": "How many people the meetup takes, host included."
                    },
                    "startsApartKm": {
                      "type": [
                        "null",
                        "integer"
                      ],
                      "description": "Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone."
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "rank",
                          "venue",
                          "fairness",
                          "travel"
                        ],
                        "properties": {
                          "rank": {
                            "type": "integer",
                            "description": "1 is the best balance of fair and good."
                          },
                          "venue": {
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "location"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The place ID (a Google place ID). Send it to pick, feedback and directions."
                              },
                              "name": {
                                "type": "string"
                              },
                              "location": {
                                "type": "object",
                                "required": [
                                  "lat",
                                  "lng"
                                ],
                                "properties": {
                                  "lat": {
                                    "type": "number"
                                  },
                                  "lng": {
                                    "type": "number"
                                  }
                                }
                              },
                              "address": {
                                "type": "string"
                              },
                              "rating": {
                                "type": "number"
                              },
                              "userRatingCount": {
                                "type": "integer"
                              },
                              "priceLevel": {
                                "type": "string"
                              },
                              "primaryType": {
                                "type": "string",
                                "description": "The place type, such as \"wine_bar\" or \"fast_food_restaurant\"."
                              },
                              "mapsUri": {
                                "type": "string",
                                "description": "Opens the place in Google Maps."
                              },
                              "opensAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Only on a place that is closed now: when it next opens."
                              }
                            }
                          },
                          "fairness": {
                            "type": "object",
                            "required": [
                              "score",
                              "maxMinutes",
                              "spreadMinutes"
                            ],
                            "properties": {
                              "score": {
                                "type": "number",
                                "description": "0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time."
                              },
                              "maxMinutes": {
                                "type": "number",
                                "description": "The longest trip, in minutes."
                              },
                              "spreadMinutes": {
                                "type": "number",
                                "description": "Longest trip minus shortest, in minutes."
                              }
                            }
                          },
                          "travel": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "participantId",
                                "mode",
                                "minutes"
                              ],
                              "properties": {
                                "participantId": {
                                  "type": "string"
                                },
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "drive",
                                    "walk",
                                    "bike",
                                    "transit"
                                  ],
                                  "description": "The travel mode this person chose."
                                },
                                "fallbackMode": {
                                  "type": "string",
                                  "enum": [
                                    "drive"
                                  ],
                                  "description": "Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show \"by car\" instead of `mode`."
                                },
                                "minutes": {
                                  "type": "number",
                                  "description": "Travel time from this person's start point, by `fallbackMode` when it is set."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "widened": {
                      "type": "boolean",
                      "description": "The first search found too few places, so these come from a wider area and may be less fair."
                    },
                    "noResultsReason": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "no_venues",
                        "unreachable",
                        null
                      ],
                      "description": "Set only when status is \"no_results\". \"no_venues\": no open places of that kind matched. \"unreachable\": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as \"no_venues\"."
                    },
                    "pickedVenueId": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The venue.id someone picked, or null."
                    },
                    "pickedBy": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The participant ID of whoever picked."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "After this the meetup and everyone's start points are deleted."
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{id}/pick": {
      "post": {
        "summary": "Pick a place",
        "tags": [
          "Sessions"
        ],
        "description": "Any participant picks one of the results by its `venue.id`. Sets `pickedVenueId` and `pickedBy` for everyone. Errors: `not_a_participant` (403), `unknown_venue` (400).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 60 requests per minute per IP (per key for partners).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "venueId"
                ],
                "additionalProperties": false,
                "properties": {
                  "venueId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "description": "The venue.id of one of the results."
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "security": [
          {
            "appCheck": [],
            "bearerAuth": []
          },
          {
            "apiKey": [],
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "query",
                    "category",
                    "status",
                    "error",
                    "retryAt",
                    "me",
                    "participants",
                    "maxParticipants",
                    "startsApartKm",
                    "results",
                    "widened",
                    "noResultsReason",
                    "pickedVenueId",
                    "pickedBy",
                    "createdAt",
                    "expiresAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "query": {
                      "type": "string",
                      "description": "Free text, or \"\" when only a category was chosen."
                    },
                    "category": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "coffee",
                        "bar",
                        "food_grab_and_go",
                        "food_quick",
                        "food_casual",
                        "food_fine",
                        "park",
                        null
                      ],
                      "description": "What the search was limited to. Null for free-text meetups."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "waiting",
                        "computing",
                        "ready",
                        "no_results",
                        "error"
                      ],
                      "description": "waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error."
                    },
                    "error": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "busy",
                        "failed",
                        null
                      ],
                      "description": "Set when status is \"error\". \"busy\" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); \"failed\" can be retried."
                    },
                    "retryAt": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "format": "date-time",
                      "description": "With error \"busy\": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise."
                    },
                    "me": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "role"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "role": {
                              "type": "string",
                              "enum": [
                                "host",
                                "guest"
                              ]
                            },
                            "feedback": {
                              "description": "My own answer to \"Did this spot feel fair to you?\". Never shown to the other person.",
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "venueId",
                                    "rating",
                                    "comment"
                                  ],
                                  "properties": {
                                    "venueId": {
                                      "type": "string"
                                    },
                                    "rating": {
                                      "type": "string",
                                      "enum": [
                                        "yes",
                                        "somewhat",
                                        "no"
                                      ]
                                    },
                                    "comment": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "participants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "role",
                          "mode"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "host",
                              "guest"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "drive",
                              "walk",
                              "bike",
                              "transit"
                            ]
                          }
                        }
                      }
                    },
                    "maxParticipants": {
                      "type": "integer",
                      "description": "How many people the meetup takes, host included."
                    },
                    "startsApartKm": {
                      "type": [
                        "null",
                        "integer"
                      ],
                      "description": "Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone."
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "rank",
                          "venue",
                          "fairness",
                          "travel"
                        ],
                        "properties": {
                          "rank": {
                            "type": "integer",
                            "description": "1 is the best balance of fair and good."
                          },
                          "venue": {
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "location"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The place ID (a Google place ID). Send it to pick, feedback and directions."
                              },
                              "name": {
                                "type": "string"
                              },
                              "location": {
                                "type": "object",
                                "required": [
                                  "lat",
                                  "lng"
                                ],
                                "properties": {
                                  "lat": {
                                    "type": "number"
                                  },
                                  "lng": {
                                    "type": "number"
                                  }
                                }
                              },
                              "address": {
                                "type": "string"
                              },
                              "rating": {
                                "type": "number"
                              },
                              "userRatingCount": {
                                "type": "integer"
                              },
                              "priceLevel": {
                                "type": "string"
                              },
                              "primaryType": {
                                "type": "string",
                                "description": "The place type, such as \"wine_bar\" or \"fast_food_restaurant\"."
                              },
                              "mapsUri": {
                                "type": "string",
                                "description": "Opens the place in Google Maps."
                              },
                              "opensAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Only on a place that is closed now: when it next opens."
                              }
                            }
                          },
                          "fairness": {
                            "type": "object",
                            "required": [
                              "score",
                              "maxMinutes",
                              "spreadMinutes"
                            ],
                            "properties": {
                              "score": {
                                "type": "number",
                                "description": "0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time."
                              },
                              "maxMinutes": {
                                "type": "number",
                                "description": "The longest trip, in minutes."
                              },
                              "spreadMinutes": {
                                "type": "number",
                                "description": "Longest trip minus shortest, in minutes."
                              }
                            }
                          },
                          "travel": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "participantId",
                                "mode",
                                "minutes"
                              ],
                              "properties": {
                                "participantId": {
                                  "type": "string"
                                },
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "drive",
                                    "walk",
                                    "bike",
                                    "transit"
                                  ],
                                  "description": "The travel mode this person chose."
                                },
                                "fallbackMode": {
                                  "type": "string",
                                  "enum": [
                                    "drive"
                                  ],
                                  "description": "Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show \"by car\" instead of `mode`."
                                },
                                "minutes": {
                                  "type": "number",
                                  "description": "Travel time from this person's start point, by `fallbackMode` when it is set."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "widened": {
                      "type": "boolean",
                      "description": "The first search found too few places, so these come from a wider area and may be less fair."
                    },
                    "noResultsReason": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "no_venues",
                        "unreachable",
                        null
                      ],
                      "description": "Set only when status is \"no_results\". \"no_venues\": no open places of that kind matched. \"unreachable\": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as \"no_venues\"."
                    },
                    "pickedVenueId": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The venue.id someone picked, or null."
                    },
                    "pickedBy": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The participant ID of whoever picked."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "After this the meetup and everyone's start points are deleted."
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{id}/directions": {
      "post": {
        "summary": "Record a directions tap",
        "tags": [
          "Sessions"
        ],
        "description": "Records that a participant opened directions to one of the results, for product metrics. Replies 204 with no body. Errors: `not_a_participant` (403), `unknown_venue` (400).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 60 requests per minute per IP (per key for partners).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "venueId"
                ],
                "additionalProperties": false,
                "properties": {
                  "venueId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "description": "The venue.id of one of the results."
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "security": [
          {
            "appCheck": [],
            "bearerAuth": []
          },
          {
            "apiKey": [],
            "bearerAuth": []
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{id}/feedback": {
      "post": {
        "summary": "Rate how fair a place felt",
        "tags": [
          "Sessions"
        ],
        "description": "A participant answers \"Did this spot feel fair to you?\" for one of the results, with an optional comment of up to 140 characters. Your answer comes back in `me.feedback` and is never shown to the other person. Errors: `not_a_participant` (403), `unknown_venue` (400).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 60 requests per minute per IP (per key for partners).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "venueId",
                  "rating"
                ],
                "additionalProperties": false,
                "properties": {
                  "venueId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "description": "The venue.id of one of the results."
                  },
                  "rating": {
                    "type": "string",
                    "enum": [
                      "yes",
                      "somewhat",
                      "no"
                    ]
                  },
                  "comment": {
                    "type": "string",
                    "maxLength": 140,
                    "description": "Optional. Kept anonymously."
                  },
                  "sort": {
                    "type": "string",
                    "enum": [
                      "fair",
                      "fast",
                      "rated"
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "security": [
          {
            "appCheck": [],
            "bearerAuth": []
          },
          {
            "apiKey": [],
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "query",
                    "category",
                    "status",
                    "error",
                    "retryAt",
                    "me",
                    "participants",
                    "maxParticipants",
                    "startsApartKm",
                    "results",
                    "widened",
                    "noResultsReason",
                    "pickedVenueId",
                    "pickedBy",
                    "createdAt",
                    "expiresAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "query": {
                      "type": "string",
                      "description": "Free text, or \"\" when only a category was chosen."
                    },
                    "category": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "coffee",
                        "bar",
                        "food_grab_and_go",
                        "food_quick",
                        "food_casual",
                        "food_fine",
                        "park",
                        null
                      ],
                      "description": "What the search was limited to. Null for free-text meetups."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "waiting",
                        "computing",
                        "ready",
                        "no_results",
                        "error"
                      ],
                      "description": "waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error."
                    },
                    "error": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "busy",
                        "failed",
                        null
                      ],
                      "description": "Set when status is \"error\". \"busy\" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); \"failed\" can be retried."
                    },
                    "retryAt": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "format": "date-time",
                      "description": "With error \"busy\": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise."
                    },
                    "me": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "role"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "role": {
                              "type": "string",
                              "enum": [
                                "host",
                                "guest"
                              ]
                            },
                            "feedback": {
                              "description": "My own answer to \"Did this spot feel fair to you?\". Never shown to the other person.",
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "venueId",
                                    "rating",
                                    "comment"
                                  ],
                                  "properties": {
                                    "venueId": {
                                      "type": "string"
                                    },
                                    "rating": {
                                      "type": "string",
                                      "enum": [
                                        "yes",
                                        "somewhat",
                                        "no"
                                      ]
                                    },
                                    "comment": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "participants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "role",
                          "mode"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "host",
                              "guest"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "drive",
                              "walk",
                              "bike",
                              "transit"
                            ]
                          }
                        }
                      }
                    },
                    "maxParticipants": {
                      "type": "integer",
                      "description": "How many people the meetup takes, host included."
                    },
                    "startsApartKm": {
                      "type": [
                        "null",
                        "integer"
                      ],
                      "description": "Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone."
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "rank",
                          "venue",
                          "fairness",
                          "travel"
                        ],
                        "properties": {
                          "rank": {
                            "type": "integer",
                            "description": "1 is the best balance of fair and good."
                          },
                          "venue": {
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "location"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The place ID (a Google place ID). Send it to pick, feedback and directions."
                              },
                              "name": {
                                "type": "string"
                              },
                              "location": {
                                "type": "object",
                                "required": [
                                  "lat",
                                  "lng"
                                ],
                                "properties": {
                                  "lat": {
                                    "type": "number"
                                  },
                                  "lng": {
                                    "type": "number"
                                  }
                                }
                              },
                              "address": {
                                "type": "string"
                              },
                              "rating": {
                                "type": "number"
                              },
                              "userRatingCount": {
                                "type": "integer"
                              },
                              "priceLevel": {
                                "type": "string"
                              },
                              "primaryType": {
                                "type": "string",
                                "description": "The place type, such as \"wine_bar\" or \"fast_food_restaurant\"."
                              },
                              "mapsUri": {
                                "type": "string",
                                "description": "Opens the place in Google Maps."
                              },
                              "opensAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Only on a place that is closed now: when it next opens."
                              }
                            }
                          },
                          "fairness": {
                            "type": "object",
                            "required": [
                              "score",
                              "maxMinutes",
                              "spreadMinutes"
                            ],
                            "properties": {
                              "score": {
                                "type": "number",
                                "description": "0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time."
                              },
                              "maxMinutes": {
                                "type": "number",
                                "description": "The longest trip, in minutes."
                              },
                              "spreadMinutes": {
                                "type": "number",
                                "description": "Longest trip minus shortest, in minutes."
                              }
                            }
                          },
                          "travel": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "participantId",
                                "mode",
                                "minutes"
                              ],
                              "properties": {
                                "participantId": {
                                  "type": "string"
                                },
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "drive",
                                    "walk",
                                    "bike",
                                    "transit"
                                  ],
                                  "description": "The travel mode this person chose."
                                },
                                "fallbackMode": {
                                  "type": "string",
                                  "enum": [
                                    "drive"
                                  ],
                                  "description": "Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show \"by car\" instead of `mode`."
                                },
                                "minutes": {
                                  "type": "number",
                                  "description": "Travel time from this person's start point, by `fallbackMode` when it is set."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "widened": {
                      "type": "boolean",
                      "description": "The first search found too few places, so these come from a wider area and may be less fair."
                    },
                    "noResultsReason": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "no_venues",
                        "unreachable",
                        null
                      ],
                      "description": "Set only when status is \"no_results\". \"no_venues\": no open places of that kind matched. \"unreachable\": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as \"no_venues\"."
                    },
                    "pickedVenueId": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The venue.id someone picked, or null."
                    },
                    "pickedBy": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The participant ID of whoever picked."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "After this the meetup and everyone's start points are deleted."
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/meta": {
      "get": {
        "summary": "Service info",
        "tags": [
          "Meta"
        ],
        "description": "`fakeData` is true when the API runs on offline fake places and travel times (local development only). The deployed API always answers false. `minAppVersion.ios` is the oldest iPhone app version the API still supports; an older build should ask its user to update. It is null when every version is supported.",
        "security": [],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "fakeData",
                    "minAppVersion"
                  ],
                  "properties": {
                    "fakeData": {
                      "type": "boolean"
                    },
                    "minAppVersion": {
                      "type": "object",
                      "description": "The oldest app version this API still supports, per platform. An older app should ask its user to update.",
                      "required": [
                        "ios"
                      ],
                      "properties": {
                        "ios": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "Oldest supported iPhone app version (semver, e.g. 1.2.0), or null when every version is supported."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/places/autocomplete": {
      "get": {
        "summary": "Search addresses",
        "tags": [
          "Places"
        ],
        "description": "Address suggestions while someone types their start point. Pass the same `sessionToken` (any URL-safe string up to 36 characters) for every keystroke and the details call that ends the search, so they are billed as one search. Errors: `address_search_unavailable` (503).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 60 requests per minute per IP (per key for partners).",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "input",
            "required": true,
            "description": "What the person has typed so far."
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,36}$"
            },
            "in": "query",
            "name": "sessionToken",
            "required": false,
            "description": "One value per address search, from the first keystroke to the resolve call, so Google bills it as one search."
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "suggestions"
                  ],
                  "properties": {
                    "suggestions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "placeId",
                          "primaryText",
                          "secondaryText"
                        ],
                        "properties": {
                          "placeId": {
                            "type": "string"
                          },
                          "primaryText": {
                            "type": "string"
                          },
                          "secondaryText": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/places/{placeId}": {
      "get": {
        "summary": "Resolve an address",
        "tags": [
          "Places"
        ],
        "description": "Turns a suggestion's `placeId` into a label and coordinates for the person searching, to use as their start point. The answer goes only to them. Replies with `Cache-Control: no-store`. Errors: `place_not_found` (404), `address_search_unavailable` (503).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 60 requests per minute per IP (per key for partners).",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,36}$"
            },
            "in": "query",
            "name": "sessionToken",
            "required": false,
            "description": "One value per address search, from the first keystroke to the resolve call, so Google bills it as one search."
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,512}$"
            },
            "in": "path",
            "name": "placeId",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "placeId",
                    "label",
                    "location"
                  ],
                  "properties": {
                    "placeId": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "location": {
                      "type": "object",
                      "required": [
                        "lat",
                        "lng"
                      ],
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{id}/recompute": {
      "post": {
        "summary": "Retry the results",
        "tags": [
          "Sessions"
        ],
        "description": "Retries a computation that failed, found nothing or got stuck. Counts toward the meetup's limit of 5 computations. Errors: `not_recomputable` (409) when there is nothing to retry, `too_many_recomputes` (429).\n\nNeeds a registered app: `X-Firebase-AppCheck` from the Fairplace apps, or `X-Api-Key` from a partner. Errors: `unverified_app` (401) without a valid App Check token, `invalid_api_key` (401) for an unknown key.\n\nRate limit: 20 requests per hour per IP (per key for partners).",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{22}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "security": [
          {
            "appCheck": [],
            "bearerAuth": []
          },
          {
            "apiKey": [],
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "query",
                    "category",
                    "status",
                    "error",
                    "retryAt",
                    "me",
                    "participants",
                    "maxParticipants",
                    "startsApartKm",
                    "results",
                    "widened",
                    "noResultsReason",
                    "pickedVenueId",
                    "pickedBy",
                    "createdAt",
                    "expiresAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "query": {
                      "type": "string",
                      "description": "Free text, or \"\" when only a category was chosen."
                    },
                    "category": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "coffee",
                        "bar",
                        "food_grab_and_go",
                        "food_quick",
                        "food_casual",
                        "food_fine",
                        "park",
                        null
                      ],
                      "description": "What the search was limited to. Null for free-text meetups."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "waiting",
                        "computing",
                        "ready",
                        "no_results",
                        "error"
                      ],
                      "description": "waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error."
                    },
                    "error": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "busy",
                        "failed",
                        null
                      ],
                      "description": "Set when status is \"error\". \"busy\" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); \"failed\" can be retried."
                    },
                    "retryAt": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "format": "date-time",
                      "description": "With error \"busy\": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise."
                    },
                    "me": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "role"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "role": {
                              "type": "string",
                              "enum": [
                                "host",
                                "guest"
                              ]
                            },
                            "feedback": {
                              "description": "My own answer to \"Did this spot feel fair to you?\". Never shown to the other person.",
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "venueId",
                                    "rating",
                                    "comment"
                                  ],
                                  "properties": {
                                    "venueId": {
                                      "type": "string"
                                    },
                                    "rating": {
                                      "type": "string",
                                      "enum": [
                                        "yes",
                                        "somewhat",
                                        "no"
                                      ]
                                    },
                                    "comment": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "participants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "role",
                          "mode"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "host",
                              "guest"
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "drive",
                              "walk",
                              "bike",
                              "transit"
                            ]
                          }
                        }
                      }
                    },
                    "maxParticipants": {
                      "type": "integer",
                      "description": "How many people the meetup takes, host included."
                    },
                    "startsApartKm": {
                      "type": [
                        "null",
                        "integer"
                      ],
                      "description": "Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone."
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "rank",
                          "venue",
                          "fairness",
                          "travel"
                        ],
                        "properties": {
                          "rank": {
                            "type": "integer",
                            "description": "1 is the best balance of fair and good."
                          },
                          "venue": {
                            "type": "object",
                            "required": [
                              "id",
                              "name",
                              "location"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The place ID (a Google place ID). Send it to pick, feedback and directions."
                              },
                              "name": {
                                "type": "string"
                              },
                              "location": {
                                "type": "object",
                                "required": [
                                  "lat",
                                  "lng"
                                ],
                                "properties": {
                                  "lat": {
                                    "type": "number"
                                  },
                                  "lng": {
                                    "type": "number"
                                  }
                                }
                              },
                              "address": {
                                "type": "string"
                              },
                              "rating": {
                                "type": "number"
                              },
                              "userRatingCount": {
                                "type": "integer"
                              },
                              "priceLevel": {
                                "type": "string"
                              },
                              "primaryType": {
                                "type": "string",
                                "description": "The place type, such as \"wine_bar\" or \"fast_food_restaurant\"."
                              },
                              "mapsUri": {
                                "type": "string",
                                "description": "Opens the place in Google Maps."
                              },
                              "opensAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Only on a place that is closed now: when it next opens."
                              }
                            }
                          },
                          "fairness": {
                            "type": "object",
                            "required": [
                              "score",
                              "maxMinutes",
                              "spreadMinutes"
                            ],
                            "properties": {
                              "score": {
                                "type": "number",
                                "description": "0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time."
                              },
                              "maxMinutes": {
                                "type": "number",
                                "description": "The longest trip, in minutes."
                              },
                              "spreadMinutes": {
                                "type": "number",
                                "description": "Longest trip minus shortest, in minutes."
                              }
                            }
                          },
                          "travel": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "participantId",
                                "mode",
                                "minutes"
                              ],
                              "properties": {
                                "participantId": {
                                  "type": "string"
                                },
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "drive",
                                    "walk",
                                    "bike",
                                    "transit"
                                  ],
                                  "description": "The travel mode this person chose."
                                },
                                "fallbackMode": {
                                  "type": "string",
                                  "enum": [
                                    "drive"
                                  ],
                                  "description": "Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show \"by car\" instead of `mode`."
                                },
                                "minutes": {
                                  "type": "number",
                                  "description": "Travel time from this person's start point, by `fallbackMode` when it is set."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "widened": {
                      "type": "boolean",
                      "description": "The first search found too few places, so these come from a wider area and may be less fair."
                    },
                    "noResultsReason": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "enum": [
                        "no_venues",
                        "unreachable",
                        null
                      ],
                      "description": "Set only when status is \"no_results\". \"no_venues\": no open places of that kind matched. \"unreachable\": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as \"no_venues\"."
                    },
                    "pickedVenueId": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The venue.id someone picked, or null."
                    },
                    "pickedBy": {
                      "type": [
                        "null",
                        "string"
                      ],
                      "description": "The participant ID of whoever picked."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "After this the meetup and everyone's start points are deleted."
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Default Response",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "requestId"
                  ],
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string",
                      "description": "A sentence that is safe to show to people."
                    },
                    "code": {
                      "type": "string",
                      "description": "Stable, machine-readable reason. Clients switch on this, never on detail."
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "appCheck": []
    },
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "Sessions",
      "description": "A meetup: people join with their start points and get places ranked by how fair the trip is for each of them."
    },
    {
      "name": "Places",
      "description": "Address search for a start point."
    },
    {
      "name": "Meta",
      "description": "About the service itself."
    }
  ]
}
