複数の形式の表現 |
---|
"location": { "type": "object", "properties": { "type": {"const": "geo:json"}, "value": { "oneOf": [ { "type": "object", "properties": { "type": {"const":"Point"}, "coordinates": { "type": "array", "items": { "type": "number", "minItems": 2, "maxItems": 3 } } }, "required": ["type", "coordinates"] }, { "type": "object", "properties": { "type": {"const":"Polygon"}, "coordinates": { "type": "array", "items": { "type": "array", "items": { "type": "array", "items": { "type": "number", "minItems": 2, "maxItems": 3 } } } } }, "required": ["type", "coordinates"] } ] } }, "required": ["type", "value"] }, |