{
  "additionalProperties": false,
  "properties": {
    "avg_gradient_pct": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "candidate_fingerprint": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "canon_id": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "canon_version": {
      "type": "integer"
    },
    "centerline_geom": {
      "additionalProperties": false,
      "properties": {
        "coordinates": {
          "items": {
            "type": "array"
          },
          "type": "array"
        },
        "type": {
          "enum": [
            "LineString",
            "MultiPolygon"
          ]
        }
      },
      "required": [
        "type",
        "coordinates"
      ],
      "type": "object"
    },
    "centerline_polyline": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "compiler_version": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "confidence": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "corridor_geom": {
      "additionalProperties": false,
      "properties": {
        "coordinates": {
          "items": {
            "type": "array"
          },
          "type": "array"
        },
        "type": {
          "enum": [
            "LineString",
            "MultiPolygon"
          ]
        }
      },
      "required": [
        "type",
        "coordinates"
      ],
      "type": "object"
    },
    "created_at": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "dem_source": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "direction": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "display_name": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "gate_end_line": {
      "additionalProperties": false,
      "properties": {
        "coordinates": {
          "items": {
            "type": "array"
          },
          "type": "array"
        },
        "type": {
          "enum": [
            "LineString",
            "MultiPolygon"
          ]
        }
      },
      "required": [
        "type",
        "coordinates"
      ],
      "type": "object"
    },
    "gate_start_line": {
      "additionalProperties": false,
      "properties": {
        "coordinates": {
          "items": {
            "type": "array"
          },
          "type": "array"
        },
        "type": {
          "enum": [
            "LineString",
            "MultiPolygon"
          ]
        }
      },
      "required": [
        "type",
        "coordinates"
      ],
      "type": "object"
    },
    "geographic_revision_id": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "h3_cells": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "coverage_role": {
            "enum": [
              "corridor",
              "gate_start",
              "gate_end"
            ]
          },
          "h3_resolution": {
            "const": 10
          },
          "tile_id": {
            "pattern": "^[0-9a-f]{15}$",
            "type": "string"
          }
        },
        "required": [
          "h3_resolution",
          "tile_id",
          "coverage_role"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "length_m": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "low_confidence_flags": {
      "items": {
        "type": [
          "string",
          "number",
          "boolean",
          "null"
        ]
      },
      "type": "array"
    },
    "max_gradient_pct": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "notice_ids": {
      "items": {
        "type": [
          "string",
          "number",
          "boolean",
          "null"
        ]
      },
      "type": "array"
    },
    "odbl_extract_at": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "odbl_source": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "osm_way_refs": {
      "items": {
        "type": [
          "string",
          "number",
          "boolean",
          "null"
        ]
      },
      "type": "array"
    },
    "provenance": {
      "additionalProperties": false,
      "properties": {
        "boundary_snap": {
          "additionalProperties": false,
          "properties": {
            "end": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "snap_window_m": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "start": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "candidate_fingerprint": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "base_algorithm": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "base_value": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "coordinate_grid_degrees": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "exact_gate_end": {
              "additionalProperties": false,
              "properties": {
                "a_lat": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "a_lon": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "b_lat": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "b_lon": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "exact_gate_start": {
              "additionalProperties": false,
              "properties": {
                "a_lat": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "a_lon": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "b_lat": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "b_lon": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "geometry_samples": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "legacy_v2_value": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "canonical_profile_hash": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "value": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "capture_tolerance_revision": {
          "additionalProperties": false,
          "properties": {
            "candidate_fingerprint": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "model": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "prior_geometry_policy": {
              "additionalProperties": false,
              "properties": {
                "corridor_half_width_m": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "gate_end_half_extent_m": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "gate_start_half_extent_m": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "source": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "record_continuity_policy": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "registry": {
              "additionalProperties": false,
              "properties": {
                "blake3": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "source": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "revised_geometry_policy": {
              "additionalProperties": false,
              "properties": {
                "corridor_half_width_m": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "gate_end_half_extent_m": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "gate_start_half_extent_m": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "source": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "revision_id": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "unchanged_identity_fields": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "type": "array"
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "compile_method": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "corridor": {
          "additionalProperties": false,
          "properties": {
            "compiler_preview_geometry": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "h3_cover": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "half_width_m": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "publish_geometry": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "directional_extraction": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "opposite_way_refs": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "type": "array"
            },
            "orientation": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "highway_tag": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "launch_ratification": {
          "additionalProperties": false,
          "properties": {
            "decision_id": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "persistence_m": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "profile_spacing": {
          "additionalProperties": false,
          "properties": {
            "avg_m": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "max_m": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "target_m": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "ratified_boundary": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "anchors": {
              "additionalProperties": false,
              "properties": {
                "end": {
                  "additionalProperties": false,
                  "properties": {
                    "exact_gate": {
                      "additionalProperties": false,
                      "properties": {
                        "a_lat": {
                          "type": [
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ]
                        },
                        "a_lon": {
                          "type": [
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ]
                        },
                        "b_lat": {
                          "type": [
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ]
                        },
                        "b_lon": {
                          "type": [
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "label": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    },
                    "lat": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    },
                    "lon": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    },
                    "osm_node_id": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    },
                    "resolved_offset_m": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "start": {
                  "additionalProperties": false,
                  "properties": {
                    "exact_gate": {
                      "additionalProperties": false,
                      "properties": {
                        "a_lat": {
                          "type": [
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ]
                        },
                        "a_lon": {
                          "type": [
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ]
                        },
                        "b_lat": {
                          "type": [
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ]
                        },
                        "b_lon": {
                          "type": [
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "label": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    },
                    "lat": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    },
                    "lon": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    },
                    "osm_node_id": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    },
                    "resolved_offset_m": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "decision_id": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "ordered_osm_way_refs": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "type": "array"
            },
            "replaces_candidate_fingerprint": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "reversed_way_refs": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "type": "array"
            },
            "seam_elevation_deltas_m": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "type": "array"
            },
            "seam_gaps_m": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "type": "array"
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "region": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "road_class": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "vertical_semantics": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "way_chain": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "edges": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "elevation_seam_m": {
                    "type": [
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  "endpoint_gap_m": {
                    "type": [
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  "from_way": {
                    "type": [
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  "to_way": {
                    "type": [
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  "turn_angle_deg": {
                    "type": [
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": "array"
            },
            "endpoint_tolerance_m": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "max_abs_elevation_seam_m": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "max_turn_deg": {
              "additionalProperties": false,
              "properties": {
                "continuation": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "same_name": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "osm_way_refs": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "type": "array"
            },
            "road_names": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "type": "array"
            }
          },
          "type": [
            "object",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "ratified_at": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "record_continuity_policy": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "registry_id": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "retired_at": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "route_name": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "source_ids": {
      "items": {
        "type": [
          "string",
          "number",
          "boolean",
          "null"
        ]
      },
      "type": "array"
    },
    "status": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "supersedes_climb_id": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "updated_at": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "v1_commitment_hex": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "vert_m": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "worthiness_score": {
      "type": [
        "string",
        "number",
        "boolean",
        "null"
      ]
    }
  },
  "required": [
    "canon_id",
    "status",
    "candidate_fingerprint",
    "display_name",
    "route_name",
    "direction",
    "centerline_polyline",
    "length_m",
    "vert_m",
    "avg_gradient_pct",
    "max_gradient_pct",
    "worthiness_score",
    "confidence",
    "dem_source",
    "compiler_version",
    "odbl_source",
    "odbl_extract_at",
    "ratified_at",
    "retired_at",
    "supersedes_climb_id",
    "record_continuity_policy",
    "created_at",
    "updated_at",
    "centerline_geom",
    "corridor_geom",
    "gate_start_line",
    "gate_end_line",
    "osm_way_refs",
    "low_confidence_flags",
    "source_ids",
    "notice_ids",
    "registry_id",
    "canon_version",
    "geographic_revision_id",
    "provenance",
    "h3_cells"
  ],
  "type": "object"
}
