{"openapi":"3.1.0","info":{"title":"Kimberly API","description":"API for pre validating building plans against zoning plans or syte predictions","version":"0.1.0"},"paths":{"/healthcheck":{"get":{"summary":"Get Health","description":"Simple Healthcheck for K8s and Load Balancer","operationId":"get_health_healthcheck_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Health Healthcheck Get"}}}}}}},"/api/cadastral/parcel-near-by":{"get":{"tags":["Cadastral"],"summary":"Get a Parcel as GeoJSON near Lat/Lng","description":"Get details of a parcel within a specific radius of a coordinate","operationId":"get_parcel_nearby_as_geojson_api_cadastral_parcel_near_by_get","parameters":[{"name":"radius","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":0,"description":"Radius tolerance in meters to find entities within.","default":30,"title":"Radius"},"description":"Radius tolerance in meters to find entities within."},{"name":"filter","in":"query","required":false,"schema":{"enum":["only-streets","no-streets","all"],"type":"string","description":"Filter by streets","default":"all","title":"Filter"},"description":"Filter by streets"},{"name":"lat","in":"query","required":true,"schema":{"type":"number","maximum":90.0,"minimum":-90.0,"description":"Parcel latitude coordinate in EPSG 4326","title":"Lat"},"description":"Parcel latitude coordinate in EPSG 4326","examples":{"Münster Fernholzstraße 33":{"value":51.9911041641}}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","maximum":180.0,"minimum":-180.0,"description":"Parcel longitude coordinate in EPSG 4326","title":"Lng"},"description":"Parcel longitude coordinate in EPSG 4326","examples":{"Münster Fernholzstraße 33":{"value":7.59131190917}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Parcel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vector-tiles/parcels/{zoom}/{x}/{y}":{"get":{"tags":["Vector Tiles"],"summary":"Get Parcels as Vector Tiles","description":"Query parcels in a given tile. Returns a pbf feature collection of parcels compatible with Mapbox Vector Tiles API.","operationId":"get_parcels_tiles_api_vector_tiles_parcels__zoom___x___y__get","parameters":[{"name":"x","in":"path","required":true,"schema":{"type":"integer","description":"The tile column","title":"X"},"description":"The tile column","examples":{"34157":{"value":34157}}},{"name":"y","in":"path","required":true,"schema":{"type":"integer","description":"The tile row","title":"Y"},"description":"The tile row","examples":{"21662":{"value":21662}}},{"name":"zoom","in":"path","required":true,"schema":{"type":"integer","minimum":12,"description":"The tile zoom level as rounded integer","title":"Zoom"},"description":"The tile zoom level as rounded integer","examples":{"16":{"value":16}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vector-tiles/buildings/{zoom}/{x}/{y}":{"get":{"tags":["Vector Tiles"],"summary":"Get Buildings as Vector Tiles","description":"Query buildings in a given tile. Returns a pbf feature collection of buildings compatible with Mapbox Vector Tiles API. Additional layer attributes are concealed depending on your authentication","operationId":"get_buildings_tiles_api_vector_tiles_buildings__zoom___x___y__get","parameters":[{"name":"x","in":"path","required":true,"schema":{"type":"integer","description":"The tile column","title":"X"},"description":"The tile column","examples":{"34157":{"value":34157}}},{"name":"y","in":"path","required":true,"schema":{"type":"integer","description":"The tile row","title":"Y"},"description":"The tile row","examples":{"21662":{"value":21662}}},{"name":"zoom","in":"path","required":true,"schema":{"type":"integer","minimum":12,"description":"The tile zoom level as rounded integer","title":"Zoom"},"description":"The tile zoom level as rounded integer","examples":{"16":{"value":16}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vector-tiles/buildingcomponents/{zoom}/{x}/{y}":{"get":{"tags":["Vector Tiles"],"summary":"Get Building Components as Vector Tiles","description":"Query building components in a given tile. Returns a pbf feature collection of building components compatible with Mapbox Vector Tiles API.","operationId":"get_components_tiles_api_vector_tiles_buildingcomponents__zoom___x___y__get","parameters":[{"name":"x","in":"path","required":true,"schema":{"type":"integer","description":"The tile column","title":"X"},"description":"The tile column","examples":{"34157":{"value":34157}}},{"name":"y","in":"path","required":true,"schema":{"type":"integer","description":"The tile row","title":"Y"},"description":"The tile row","examples":{"21662":{"value":21662}}},{"name":"zoom","in":"path","required":true,"schema":{"type":"integer","minimum":12,"description":"The tile zoom level as rounded integer","title":"Zoom"},"description":"The tile zoom level as rounded integer","examples":{"16":{"value":16}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/potential/building-potential-parcel-neighbors":{"get":{"tags":["Potential"],"summary":"AI building potential parcel neighbors","description":"Get neighboring parcels that where used to predict the AI building potential of a property","operationId":"get_building_potential_parcel_neighbors_as_list_api_potential_building_potential_parcel_neighbors_get","parameters":[{"name":"property_identifier","in":"query","required":true,"schema":{"type":"string","description":"Property or parcel identifier you want to get the building potential parcel neighbors for","title":"Property Identifier"},"description":"Property or parcel identifier you want to get the building potential parcel neighbors for","examples":{"has_neighbors":{"value":"PROPERTY-DEBWL0010004TK4F"},"has_no_neighbors":{"value":"DENIAL8300008TSJ"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildingPotentialParcelNeighbors"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/siteplan-parcels":{"post":{"tags":["Checks"],"summary":"Get Parcel Building Law","description":"Get the parcels a siteplan provided as a dxf intersects with as a GeoJSON FeatureCollection","operationId":"get_site_plan_parcels_siteplan_parcels_post","parameters":[{"name":"coordinate_reference","in":"query","required":false,"schema":{"enum":["EPSG:25832","EPSG:25833"],"type":"string","description":"Coordinate reference system that should be used to evaluate the submitted building plan's geometries","default":"EPSG:25832","title":"Coordinate Reference"},"description":"Coordinate reference system that should be used to evaluate the submitted building plan's geometries","examples":{"('EPSG:25832', 'EPSG:25833')":{"value":["EPSG:25832","EPSG:25833"]}}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_get_site_plan_parcels_siteplan_parcels_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShapeParcelCollection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/parcel-building-law":{"get":{"tags":["Checks"],"summary":"Get Parcel Building Law","description":"Check if a zoning plan or prediction exists for a parcel combination and returns the corresponding building law that can be applied. If no zoning plan exists, we check if a syte building potential exists and if the given parcels are part of the same property.","operationId":"get_parcel_building_law_parcel_building_law_get","parameters":[{"name":"parcel_identifier","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Parcel identifiers to get the applicable building law for","title":"Parcel Identifier"},"description":"Parcel identifiers to get the applicable building law for","examples":{"zoning_plan_found":{"value":["DENW02AL1000F2ay","DENW02AL1000F2V6"]},"no_zoning_plan_found":{"value":["DENW02AL1000EvWf","DENW02AL1000F2k9"]}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParcelBuildingLawResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/validate-building-permit":{"post":{"tags":["Checks"],"summary":"Pre validate building permit","description":"Form submission for building permit pre validation. This endpoint accepts a DXF from which it will attempt to \n        detect the planned buildings and perform various numeric and geometric checks to determine if the building \n        permit is likely to be approved. The response will contain a list of errors and warnings that need to be \n        addressed before the building permit can be approved.","operationId":"post_validate_building_permit_form_validate_building_permit_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_post_validate_building_permit_form_validate_building_permit_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermitCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdditionalData":{"properties":{},"additionalProperties":true,"type":"object","title":"AdditionalData"},"AppliedLawReasonType":{"type":"string","enum":["zoning_plan_found","no_zoning_plan_found","no_building_potential","invalid_parcel_selection","parcel_partially_intersecting_zoning_plan","parcels_not_in_single_zoning_plan"],"title":"AppliedLawReasonType"},"Body_get_site_plan_parcels_siteplan_parcels_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"DXF building plan"}},"type":"object","required":["file"],"title":"Body_get_site_plan_parcels_siteplan_parcels_post"},"Body_post_validate_building_permit_form_validate_building_permit_post":{"properties":{"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"string"},{"type":"null"}],"title":"File","description":"DXF building plan"},"parcel_identifiers":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Parcel Identifiers","description":"Identifiers of the parcels containing the submitted building plan"},"numeric_inputs_grz":{"type":"number","minimum":0.0,"title":"Numeric Inputs Grz","description":"Planned GRZ value of the submitted building plan"},"numeric_inputs_gfz":{"type":"number","minimum":0.0,"title":"Numeric Inputs Gfz","description":"Planned GFZ value of the submitted building plan"},"numeric_inputs_usage":{"$ref":"#/components/schemas/UsageType","description":"Planned usage type of the buildings in the submitted building plan"},"numeric_inputs_entire_floors":{"type":"integer","minimum":0.0,"title":"Numeric Inputs Entire Floors","description":"Maximum planned number of entire floors of the submitted building plan"},"numeric_inputs_coverage_type":{"$ref":"#/components/schemas/CoverageType","description":"Planned coverage type of the buildings in the submitted building plan"},"numeric_inputs_ridge_height":{"type":"number","minimum":0.0,"title":"Numeric Inputs Ridge Height","description":"Maximum planned ridge height of the submitted building plan"},"numeric_inputs_eaves_height":{"type":"number","minimum":0.0,"title":"Numeric Inputs Eaves Height","description":"Maximum planned eaves height of the submitted building plan"},"numeric_inputs_rental_units":{"type":"integer","minimum":0.0,"title":"Numeric Inputs Rental Units","description":"Planned number of apartments in the submitted building plan"},"coordinate_reference":{"anyOf":[{"type":"string","enum":["EPSG:25832","EPSG:25833"]},{"type":"null"}],"title":"Coordinate Reference","description":"Coordinate reference system that should be used to evaluate the submitted building plan's geometries"}},"type":"object","required":["parcel_identifiers","numeric_inputs_grz","numeric_inputs_gfz","numeric_inputs_usage","numeric_inputs_entire_floors","numeric_inputs_coverage_type","numeric_inputs_ridge_height","numeric_inputs_eaves_height","numeric_inputs_rental_units"],"title":"Body_post_validate_building_permit_form_validate_building_permit_post"},"BuildingPotentialParcelNeighbor":{"properties":{"parcel_identifier":{"type":"string","title":"Neighbor identifier","description":"Parcel identifier of a neighbor","examples":["DENW49AL00009b0D"]},"distance":{"type":"number","title":"Distance to neighbor","description":"Distance between the property and the neighbor in meters","examples":[50.32]},"is_street":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Street","description":"Indicates if the parcel is a street or not, NULL is unsure","examples":[true]}},"type":"object","required":["parcel_identifier","distance","is_street"],"title":"BuildingPotentialParcelNeighbor"},"BuildingPotentialParcelNeighbors":{"properties":{"property_identifier":{"type":"string","title":"Property identifier","description":"Property identifier of the root property","examples":["PROPERTY-DENW49AL00009b0v"]},"neighbors":{"items":{"$ref":"#/components/schemas/BuildingPotentialParcelNeighbor"},"type":"array","title":"Neighbors","description":"List of neighbors"}},"type":"object","required":["property_identifier","neighbors"],"title":"BuildingPotentialParcelNeighbors"},"CategoryCheck":{"properties":{"successful":{"type":"boolean","title":"Successful","description":"Whether this check was successful"},"type":{"$ref":"#/components/schemas/CategoryCheckType","description":"Type of the performed check"},"field":{"type":"string","title":"Field","description":"Field name of the numeric input"},"types_allowed":{"items":{"type":"string"},"type":"array","title":"Types Allowed","description":"Allowed types for this field"}},"type":"object","required":["successful","type","field"],"title":"CategoryCheck"},"CategoryCheckType":{"type":"string","enum":["usage","coverage_type"],"title":"CategoryCheckType"},"CoverageType":{"type":"string","enum":["open-detached-house","open-semi-detached-house","open-adjoining-houses","closed"],"title":"CoverageType"},"ErroneousParcel":{"properties":{"property_identifier":{"type":"string","title":"Property Identifier"},"identifier":{"type":"string","title":"Identifier"},"label":{"type":"string","title":"Label"}},"type":"object","required":["property_identifier","identifier","label"],"title":"ErroneousParcel"},"FileErrorsType":{"type":"string","enum":["file_not_provided","coordinate_reference_not_provided","geo_reference_issue","unsupported_geometry","file_too_large","file_not_readable","missing_layer_buildings","missing_layer_distance_areas"],"title":"FileErrorsType"},"GeometryCheck":{"properties":{"successful":{"type":"boolean","title":"Successful","description":"Whether this check was successful"},"type":{"$ref":"#/components/schemas/GeometryCheckType","description":"Type of the performed check"},"feature_identifiers":{"items":{"type":"string"},"type":"array","title":"Feature Identifiers","description":"References to the corresponding geometry IDs"},"layer":{"$ref":"#/components/schemas/LayerType","description":"Type of geometry/layer"}},"type":"object","required":["successful","type","feature_identifiers","layer"],"title":"GeometryCheck"},"GeometryCheckType":{"type":"string","enum":["is_site_plan_within_property","is_inside_of_selected_property","is_envelope_within_buildable_area","distance_area_is_not_inside_property","distance_area_wrong_length","collision_with_neighbour_building"],"title":"GeometryCheckType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LayerType":{"type":"string","enum":["parcel","building","distance_area","zoning_plan","zoning_plan_buildable_area","zoning_plan_partial_area"],"title":"LayerType"},"MultiPolygon":{"properties":{"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":6,"minItems":6},{"type":"null"}],"title":"Bbox"},"type":{"type":"string","const":"MultiPolygon","title":"Type"},"coordinates":{"items":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/Position2D"},{"$ref":"#/components/schemas/Position3D"}]},"type":"array","minItems":4},"type":"array"},"type":"array","title":"Coordinates"}},"type":"object","required":["type","coordinates"],"title":"MultiPolygon","description":"MultiPolygon Model"},"NumericCheck":{"properties":{"successful":{"type":"boolean","title":"Successful","description":"Whether this check was successful"},"type":{"$ref":"#/components/schemas/NumericCheckType","description":"Type of the performed check"},"field":{"type":"string","title":"Field","description":"Field name of the numeric input"},"max_allowed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Allowed","description":"Maximum allowed value for this field"}},"type":"object","required":["successful","type","field"],"title":"NumericCheck"},"NumericCheckType":{"type":"string","enum":["grz_too_high","gfz_too_high","entire_floors_too_high","ridge_height_too_high","eaves_height_too_high","rental_units_too_high"],"title":"NumericCheckType"},"Parcel":{"properties":{"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":6,"minItems":6},{"type":"null"}],"title":"Bbox"},"type":{"type":"string","const":"Feature","title":"Type"},"geometry":{"anyOf":[{"$ref":"#/components/schemas/MultiPolygon"},{"$ref":"#/components/schemas/Polygon"}],"title":"Geometry"},"properties":{"$ref":"#/components/schemas/ParcelProperties"},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["type","geometry","properties"],"title":"Parcel"},"ParcelBuildingLawResponse":{"properties":{"missing_parcels":{"anyOf":[{"items":{"$ref":"#/components/schemas/ErroneousParcel"},"type":"array"},{"type":"null"}],"title":"Missing Parcels","description":"If there is no zoning plan in the area and the parcel combination does not match a property in syte, the missing parcels are listed here","examples":[{"identifier":"DENW49AL00009b0g","label":"430"}]},"extra_parcels":{"anyOf":[{"items":{"$ref":"#/components/schemas/ErroneousParcel"},"type":"array"},{"type":"null"}],"title":"Extra Parcels","description":"If there is no zoning plan in the area and the parcel combination does not match a property in syte, the extra parcels are listed here","examples":[{"identifier":"DENW49AL00009b0g","label":"430"}]},"reason":{"$ref":"#/components/schemas/AppliedLawReasonType","description":"The reason for the result","examples":["invalid_parcel_selection"]},"processable":{"type":"boolean","title":"Processable","description":"Whether if the parcel combination is processable either by using zoning plans(§30) or syte's building predictions (§34)","readOnly":true,"examples":[true]},"building_law_applied":{"anyOf":[{"type":"string","enum":["§30","§34"]},{"type":"null"}],"title":"Building Law Applied","description":"The building law applied to the parcel combination. Either §30 or §34","readOnly":true,"examples":["§30"]},"explanation":{"type":"string","title":"Explanation","description":"A human readable explanation of the reason","readOnly":true,"examples":["The selected parcels do not match the properties in syte. Try a different selection!"]}},"type":"object","required":["reason","processable","building_law_applied","explanation"],"title":"ParcelBuildingLawResponse"},"ParcelProperties":{"properties":{"state":{"type":"string","title":"State","description":"The two letter abbreviation of the state that this entity belongs to","examples":["nw"]},"region":{"type":"string","title":"Region","description":"The region identifier of the smallest unit of regions this entity belongs to. The identifiers follow a pattern so a LIKE query will match also for larger units (e.g. state).","examples":["055150000"]},"county":{"type":"string","title":"County","description":"The name of the county (Kreis) that the entity belongs to","examples":["Münster, Stadt"]},"municipality":{"type":"string","title":"Municipality","description":"The name of the municipality (Gemeindeverband) that the entity belongs to","examples":["Münster, Stadt"]},"population":{"type":"integer","title":"Population","description":"The population of the municipality region this entity belongs to","examples":[317713]},"postcode":{"type":"string","title":"Postcode","description":"The postcode (Postleitzahl) this entity belongs to","examples":["48155"]},"identifier":{"type":"string","title":"Identifier","description":"The unique resource identifier from ALKIS","examples":["DENW49AL00009b0v"]},"label":{"type":"string","title":"Label","description":"A label for this parcel, e.g. the Zähler of a parcel this belongs to","examples":["427"]},"center":{"$ref":"#/components/schemas/Position2D","description":"The center coordinate of this parcel","examples":[[7.59182819311803,51.99093121769435]]},"uri":{"type":"string","title":"Uri","description":"An API URI to the resource of the property this parcel belongs to","examples":["https://api.syte.ms/api/advanced/property?lng=7.59182819311803&lat=51.99093121769435&parcel_identifier=DENW49AL00009b0v"]},"deeplink":{"type":"string","title":"Deeplink","description":"A link to the map showing the property to this parcel","examples":["https://app.syte.ms/map/property?parcelId=DENW49AL00009b0v"]},"on_property":{"type":"string","title":"On Property","description":"The unique resource identifier of the property this parcel belongs to","examples":["PROPERTY-DENW49AL00009b0v"]},"origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin (Entstehung)","description":"The origin of the oldest parcel the property belongs too, derived from the ALKIS property `zeitpunktDerEntstehung`","examples":["1983-01-01"]},"usage":{"items":{"type":"string"},"type":"array","title":"usage (Nutzungsartengruppe / Nutzung)","description":"The usages of the parcel (Nutzungsartengruppe / Nutzung)","examples":[["Wohnbaufläche","Landwirtschaft / Ackerland"]]},"address":{"type":"string","title":"Address (Lagebezeichnungen)","description":"A human-readable address string (of the largest parcel)","examples":["Fernholzstraße 33"]},"is_street":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Street","description":"Indicates if this parcel is a street; Null means not sure","examples":[false]},"area":{"type":"number","title":"Area (Grundstücksfläche)","description":"The area of the property (Grundstücksfläche)","examples":[811.4423156897531]},"additional_data":{"anyOf":[{"$ref":"#/components/schemas/AdditionalData"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["state","region","county","municipality","population","postcode","identifier","label","center","uri","deeplink","on_property","usage","address","area"],"title":"ParcelProperties"},"PermitCheckFeature":{"properties":{"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":6,"minItems":6},{"type":"null"}],"title":"Bbox"},"type":{"type":"string","const":"Feature","title":"Type"},"geometry":{"anyOf":[{"$ref":"#/components/schemas/MultiPolygon"},{"$ref":"#/components/schemas/Polygon"}],"title":"Geometry"},"properties":{"$ref":"#/components/schemas/PermitCheckProperties"},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["type","geometry","properties"],"title":"PermitCheckFeature"},"PermitCheckFeatureCollection":{"properties":{"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":6,"minItems":6},{"type":"null"}],"title":"Bbox"},"type":{"type":"string","const":"FeatureCollection","title":"Type"},"features":{"items":{"$ref":"#/components/schemas/PermitCheckFeature"},"type":"array","title":"Features"}},"type":"object","required":["type","features"],"title":"PermitCheckFeatureCollection"},"PermitCheckGroup_GeometryCheck_":{"properties":{"checks":{"items":{"$ref":"#/components/schemas/GeometryCheck"},"type":"array","title":"Checks"},"successful":{"type":"boolean","title":"Successful","description":"Whether all checks are successful","readOnly":true,"examples":[true]}},"type":"object","required":["checks","successful"],"title":"PermitCheckGroup[GeometryCheck]"},"PermitCheckGroup_Union_NumericCheck__CategoryCheck__":{"properties":{"checks":{"items":{"anyOf":[{"$ref":"#/components/schemas/NumericCheck"},{"$ref":"#/components/schemas/CategoryCheck"}]},"type":"array","title":"Checks"},"successful":{"type":"boolean","title":"Successful","description":"Whether all checks are successful","readOnly":true,"examples":[true]}},"type":"object","required":["checks","successful"],"title":"PermitCheckGroup[Union[NumericCheck, CategoryCheck]]"},"PermitCheckProperties":{"properties":{"identifier":{"type":"string","title":"Identifier","description":"Unique identifier for geometry. Same as GeoJSON feature ID"},"layer":{"$ref":"#/components/schemas/LayerType","description":"Type of geometry/layer"},"failed_checks":{"items":{"$ref":"#/components/schemas/GeometryCheckType"},"type":"array","title":"Failed Checks","description":"Failed checks for this geometry"},"successful":{"type":"boolean","title":"Successful","description":"Whether all checks for this geometry are successful","readOnly":true,"examples":[true]}},"type":"object","required":["identifier","layer","failed_checks","successful"],"title":"PermitCheckProperties"},"PermitCheckResponse":{"properties":{"file_errors":{"items":{"$ref":"#/components/schemas/FileErrorsType"},"type":"array","title":"File Errors","description":"Errors regarding the file"},"geometry":{"anyOf":[{"$ref":"#/components/schemas/PermitCheckFeatureCollection"},{"type":"null"}],"description":"GeoJSON representation of the uploaded data"},"geometry_checks":{"$ref":"#/components/schemas/PermitCheckGroup_GeometryCheck_","description":"Summary of geometric checks"},"numeric_checks":{"$ref":"#/components/schemas/PermitCheckGroup_Union_NumericCheck__CategoryCheck__","description":"Summary of numeric checks"},"building_law":{"$ref":"#/components/schemas/ParcelBuildingLawResponse","description":"Building law used for checking"},"validation_successful":{"type":"boolean","title":"Validation Successful","description":"Whether all checks are successful","readOnly":true,"examples":[true]}},"type":"object","required":["file_errors","geometry","geometry_checks","numeric_checks","building_law","validation_successful"],"title":"PermitCheckResponse"},"Polygon":{"properties":{"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":6,"minItems":6},{"type":"null"}],"title":"Bbox"},"type":{"type":"string","const":"Polygon","title":"Type"},"coordinates":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/Position2D"},{"$ref":"#/components/schemas/Position3D"}]},"type":"array","minItems":4},"type":"array","title":"Coordinates"}},"type":"object","required":["type","coordinates"],"title":"Polygon","description":"Polygon Model"},"Position2D":{"prefixItems":[{"type":"number","title":"Longitude"},{"type":"number","title":"Latitude"}],"type":"array","maxItems":2,"minItems":2},"Position3D":{"prefixItems":[{"type":"number","title":"Longitude"},{"type":"number","title":"Latitude"},{"type":"number","title":"Altitude"}],"type":"array","maxItems":3,"minItems":3},"ShapeParcel":{"properties":{"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":6,"minItems":6},{"type":"null"}],"title":"Bbox"},"type":{"type":"string","const":"Feature","title":"Type","default":"Feature"},"geometry":{"anyOf":[{"$ref":"#/components/schemas/MultiPolygon"},{"$ref":"#/components/schemas/Polygon"}],"title":"Geometry"},"properties":{"$ref":"#/components/schemas/ParcelProperties"},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["geometry","properties"],"title":"ShapeParcel"},"ShapeParcelCollection":{"properties":{"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":6,"minItems":6},{"type":"null"}],"title":"Bbox"},"type":{"type":"string","const":"FeatureCollection","title":"Type","default":"FeatureCollection"},"features":{"items":{"$ref":"#/components/schemas/ShapeParcel"},"type":"array","title":"Features"}},"type":"object","required":["features"],"title":"ShapeParcelCollection"},"UsageType":{"type":"string","enum":["residential","commercial","industrial","special"],"title":"UsageType"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}