-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeo.schema.json
67 lines (67 loc) · 2.39 KB
/
geo.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/xdm/common/geo",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"meta:extensible": true,
"meta:extends": ["http://schema.org/GeoCoordinates"],
"title": "Geo",
"description": "The geographic related data where an event was observed.",
"definitions": {
"geo": {
"properties": {
"xdm:countryCode": {
"title": "Country code",
"type": "string",
"pattern": "^[A-Z]{2}$",
"description":
"The two-character [ISO 3166-1 alpha-2](https://datahub.io/core/country-list) code for the country."
},
"xdm:stateProvince": {
"title": "State or province",
"type": "string",
"description":
"The state, or province portion of the observation. The format follows the [ISO 3166-2 (country and subdivision)][http://www.unece.org/cefact/locode/subdivisions.html] standard.",
"examples": ["US-CA", "DE-BB", "JP-13"],
"pattern": "([A-Z]{2}-[A-Z0-9]{1,3}|)"
},
"xdm:city": {
"title": "City",
"type": "string",
"description": "The name of the city."
},
"xdm:postalCode": {
"title": "Postal code",
"type": "string",
"description":
"The postal code of the location. Postal codes are not available for all countries. In some countries, this will only contain part of the postal code."
},
"xdm:dmaID": {
"title": "Designated Market Area",
"type": "integer",
"description": "The Nielsen Media Research designated market area."
},
"xdm:msaID": {
"title": "Metropolitan Statistical Area",
"type": "integer",
"description":
"The Metropolitan Statistical Area in the USA where the observation occurred."
}
}
}
},
"allOf": [
{
"$ref": "http://schema.org/GeoCoordinates"
},
{
"$ref": "#/definitions/geo"
}
],
"meta:status": "experimental"
}