# RoadGeometryValue

not specified in the source contract

Layer keys: `road_geometry`.

## Cost and inputs

`x-request-cost`: 1 request per call via [GET /v1/layer/{layer}](../operations/layer.md).

Dokładnie jeden z parametrów q, id, point (lat i lng razem liczą się jako point). Wszystkie punkty odczytu API i wszystkie narzędzia obsługują te trzy warianty.

## Value schema

| Field | Required | Schema / constraints | Description |
| --- | --- | --- | --- |
| `access_strip_scenario` | yes | `{"additionalProperties": false, "properties": {"flood_applied": {"const": false}, "forest_applied": {"const": false}, "planning_applied": {"const": false}, "rear_setback_m": {"const": 4}, "road_setback_m": {"minimum": 0, "type": "number", "x-unit": "m"}, "side_setback_m": {"const": 4}}, "required": ["road_setback_m", "side_setback_m", "rear_setback_m", "forest_applied", "flood_applied", "planning_applied"], "type": "object"}` | not specified in the source contract |
| `aspect_ratio` | yes | `{"minimum": 0, "type": ["number", "null"], "x-unit": "ratio"}` | not specified in the source contract |
| `compactness` | yes | `{"maximum": 1, "minimum": 0, "type": ["number", "null"], "x-unit": "ratio"}` | not specified in the source contract |
| `compactness_bbox_legacy` | yes | `{"maximum": 1, "minimum": 0, "type": ["number", "null"], "x-unit": "ratio"}` | not specified in the source contract |
| `compactness_method` | yes | `{"const": "min_rotated_rect_v1"}` | not specified in the source contract |
| `depth_m` | yes | `{"minimum": 0, "type": "number", "x-unit": "m"}` | not specified in the source contract |
| `front_width_m` | yes | `{"minimum": 0, "type": ["number", "null"], "x-unit": "m"}` | not specified in the source contract |
| `has_access_strip` | yes | `{"type": "boolean"}` | not specified in the source contract |
| `input` | yes | `{"additionalProperties": false, "properties": {"completeness_as_of": {"format": "date", "type": "string"}, "completeness_evidence": {"maxLength": 20000, "minLength": 1, "type": "string"}, "coverage_evidence": {"maxLength": 20000, "minLength": 1, "type": "string"}, "source": {"$ref": "#/$defs/SourceRef"}, "temporal": {"$ref": "#/$defs/GeometryFactTemporal"}}, "required": ["source", "temporal", "completeness_as_of", "completeness_evidence", "coverage_evidence"], "type": "object"}` | not specified in the source contract |
| `orientation_basis` | yes | `{"enum": ["road_segments", "longest_edge_proxy"]}` | not specified in the source contract |
| `parcel_as_of` | yes | `{"format": "date", "type": "string"}` | not specified in the source contract |
| `parcel_source` | yes | `{"additionalProperties": false, "allOf": [{"if": {"properties": {"date_evidence": {"const": "undated_retrieved"}}, "required": ["date_evidence"]}, "then": {"properties": {"as_of": {"type": "null"}}, "required": ["retrieved_at"]}}, {"if": {"properties": {"date_evidence": {"const": "publisher_period"}}, "required": ["date_evidence"]}, "then": {"properties": {"as_of": {"type": "null"}}, "required": ["reference_period"]}}], "properties": {"as_of": {"format": "date", "type": ["string", "null"]}, "attribution": {"type": "string"}, "author_citation_required": {"type": "boolean"}, "authors": {"items": {"minLength": 1, "type": "string"}, "maxItems": 100, "minItems": 1, "type": "array"}, "date_evidence": {"description": "Publisher date or explicitly registered undated import evidence. Omission retains legacy dated/unknown semantics.", "enum": ["publisher_dated", "undated_retrieved", "publisher_period"]}, "fallback": {"default": false, "description": "Wartość true, gdy to źródło udzieliło odpowiedzi z powodu braku rekordu w źródle podstawowym, np. własny przegląd planów ogólnych przy braku wpisu w Rejestrze Urbanistycznym.", "type": "boolean"}, "id": {"description": "Identyfikator źródła: source_status.source_id.", "type": "string"}, "licence": {"type": "string"}, "published_extract_url": {"format": "uri", "pattern": "^https://", "type": ["string", "null"]}, "publisher": {"type": "string"}, "reference_period": {"description": "Exact publisher measurement period where no day is supplied. No fabricated Jan 1 or Dec 31 date.", "pattern": "^(19\|20\|21)[0-9]{2}-(19\|20\|21)[0-9]{2}$", "type": "string"}, "retrieved_at": {"anyOf": [{"format": "date", "type": "string"}, {"format": "date-time", "type": "string"}], "description": "Actual import date/time from a retained receipt, never a publisher edition date. Date-only receipts do not imply an exact instant."}, "title": {"type": "string"}, "url": {"type": ["string", "null"]}}, "required": ["id", "title", "attribution", "as_of"], "type": "object"}` | Cited source. as_of is publisher dataset vintage (or approved live observation date). Registered undated_retrieved snapshots keep as_of null and expose the import date separately as retrieved_at; this never establishes publisher vintage. |
| `road_frontage_type` | yes | `{"maxLength": 200, "minLength": 1, "type": ["string", "null"]}` | not specified in the source contract |
| `road_records_sampled` | yes | `{"maximum": 8, "minimum": 0, "type": "integer"}` | not specified in the source contract |
| `search_radius_m` | yes | `{"const": 250}` | not specified in the source contract |

```json
{
  "$ref": "./envelope.json#/$defs/RoadGeometryValue"
}
```

## Empty answer: covered_no_data

not specified in the source contract. The contract does not define a complete empty value for this schema.

## Coverage states

Cztery stany zakresu danych dla jednej kategorii w danym miejscu. covered: źródło obejmuje to miejsce i zawiera rekord; value zawiera ten rekord. covered_no_data: źródło obejmuje to miejsce, lecz nie zawiera rekordu; value ma określoną dla danej kategorii pustą wartość (false, 0, [], none), nigdy null; jest to potwierdzony brak rekordu, za który naliczana jest opłata. not_covered: źródło nie obejmuje miejsca albo państwo nie publikuje tych danych w postaci do odczytu maszynowego; value=null, agent nie może wyciągać wniosków, a opłata jest zwracana, gdy zapytanie dotyczy tych danych. not_computed: posiadamy źródło, lecz nie obliczyliśmy jeszcze wyniku dla tego miejsca, np. trwa ładowanie zbioru; value=null, opłata jest zwracana. Każdy stan zawiera uwagę napisaną prostym językiem.

States: `covered` | `covered_no_data` | `not_covered` | `not_computed`.

`LayerAnswer` required fields: `layer`, `coverage`, `value`, `note`, `source`, `as_of`, `layer_version`.

## Billing rule

Koszt żądania. charged: liczba naliczonych wywołań po zwrotach. refunded: liczba wywołań naliczonych, a następnie zwróconych. rule: zastosowana reguła. Płatne są odpowiedzi, potwierdzone braki rekordów (covered_no_data) i niejednoznaczne listy kandydatów. Bezpłatne są błędne dane wejściowe (400), brak uwierzytelnienia (401), odpowiedzi bez zmiany danych (304) i operacje bezpłatne. Zwrot obejmuje pozostałe 4xx, każde 5xx, status not_covered oraz odpowiedź dotyczącą jednej kategorii ze stanem not_covered lub not_computed. W operacjach zbiorczych liczby dotyczą poszczególnych elementów.

Rule values: `charged` | `free_operation` | `free_invalid_input` | `free_unauthorized` | `free_not_modified` | `free_idempotency_replay` | `refunded_client_error` | `refunded_server_error` | `refunded_not_covered` | `refunded_not_computed` | `batch_mixed` | `free_record_reuse`.

## curl example

```sh
curl --silent --show-error --request GET "https://api.landfeed.pl/v1/layer/flood" --get \
  -H "X-Api-Key: ${LANDFEED_API_KEY}" \
  --data-urlencode 'id=141803_2.0001.12/3'
```
