Skip to content

Commit 98857e1

Browse files
authored
Merge pull request #566 from apdavison/add-geocoordinates
Add GeoCoordinates and Location schemas
2 parents ee9005e + aad83aa commit 98857e1

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"_type": "core:GeoCoordinates",
3+
"required": [
4+
"latitude",
5+
"longitude"
6+
],
7+
"properties": {
8+
"elevation": {
9+
"type": "number",
10+
"_instruction": "Enter the elevation of the location in metres, following the definitions of the WGS84 system."
11+
},
12+
"latitude": {
13+
"type": "number",
14+
"_instruction": "Enter the latitude of the location in decimal degrees, following the definitions of the WGS84 system."
15+
},
16+
"longitude": {
17+
"type": "number",
18+
"_instruction": "Enter the longitude of the location in decimal degrees, following the definitions of the WGS84 system."
19+
}
20+
}
21+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"_type": "core:Location",
3+
"required": [
4+
"country"
5+
],
6+
"properties": {
7+
"address": {
8+
"type": "string",
9+
"_instruction": "Enter the address of the location, in the format [Street address], City, [Region/State], [Postal code]. The minimum requested information is City."
10+
},
11+
"country": {
12+
"_instruction": "Enter the country in which the location is found.",
13+
"_linkedTypes": [
14+
"controlledTerms:SovereignState"
15+
]
16+
},
17+
"geoCoordinates": {
18+
"_instruction": "Enter the geographic coordinates of the location.",
19+
"_embeddedTypes": [
20+
"core:GeoCoordinates"
21+
]
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)