Files
marka/registry/schema-org/GeoShape.schema.json
Max Richter c687eff53d big tings
2025-08-17 15:16:17 +02:00

60 lines
3.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema:GeoShape",
"title": "GeoShape",
"description": "The geographic shape of a place. A GeoShape can be described using several properties whose values are based on latitude/longitude pairs. Either whitespace or commas can be used to separate latitude and longitude; whitespace should be used when writing a list of several such points.",
"type": "object",
"allOf": [
{
"description": "Structured values are used when the value of a property has a more complex structure than simply being a textual value or a reference to another thing.",
"$ref": "schema:StructuredValue"
}
],
"properties": {
"address": {
"description": "Physical address of the item.",
"anyOf": [{ "type": "string" }, { "$ref": "schema:PostalAddress" }]
},
"addressCountry": {
"description": "The country. Recommended to be in 2-letter [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1) format, for example \"US\". For backward compatibility, a 3-letter [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) country code such as \"SGP\" or a full country name such as \"Singapore\" can also be used.",
"anyOf": [{ "type": "string" }, { "$ref": "schema:Country" }]
},
"box": {
"description": "A box is the area enclosed by the rectangle formed by two points. The first point is the lower corner, the second point is the upper corner. A box is expressed as two points separated by a space character.",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
]
},
"circle": {
"description": "A circle is the circular region of a specified radius centered at a specified latitude and longitude. A circle is expressed as a pair followed by a radius in meters.",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
]
},
"elevation": {
"description": "The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT\\_OF\\_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters.",
"anyOf": [{ "type": "number" }, { "type": "string" }]
},
"line": {
"description": "A line is a point-to-point path consisting of two or more points. A line is expressed as a series of two or more point objects separated by space.",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
]
},
"polygon": {
"description": "A polygon is the area enclosed by a point-to-point path for which the starting and ending points are the same. A polygon is expressed as a series of four or more space delimited points where the first and final points are identical.",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
]
},
"postalCode": {
"description": "The postal code. For example, 94043.",
"type": "string"
}
}
}