-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiary.apib
100 lines (85 loc) · 2.65 KB
/
apiary.apib
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
FORMAT: 1A
HOST: http://kartverkettest.herokuapp.com
# kartverket/test api
kartverket/test api is a sandbox for testing Lilly Labs' Kartverket REST APIs
# Group Norwegian Administrative Units
Group related resources of the **kartverket/test API**
## Counties Collection [/counties]
### List all Counties [GET]
+ Response 200 (application/json)
[
{
county_code: 20,
name: {
no: "Finnmark",
se: "Finnmárku"
},
placename_uris: [
"/placename/123456789"
],
geojson: "/geojson/county-20-1.geojson"
}, {
county_code: 19,
name: {
no: "Troms",
se: "Romssa"
},
placename_uris: [
"/placename/987654321"
],
geojson: "/geojson/county-19-1.geojson"
}
]
## County [/counties/{county_code}]
A single County object with all its details
+ Parameters
+ county_code (required, number, `20`) ... Numeric `id` of the County to perform action with. Has example value.
### Retrieve a County summary [GET]
+ Response 200 (application/json)
{
county_code: 20,
name: {
nb: "Finnmark",
nn: "Finnmark",
se: "Finnmárku"
},
placename_uris: [
"/placename/123456789"
],
geojson: "/geojson/county-20-1.geojson"
}
# Group Norwegian Placenames
## Placename [/placenames/{ssr_id}{?geojson}]
A single placename object
+ Parameters
+ ssr_id (required, number, `1234356`) ... Numeric `ssr_ìd` of the Placename in the 'Statens stedsnavnsregister' database. Has example value.
### Retrieve a Placename object [GET]
+ Response 200 (application/json)
{
"name_type_group":5,
"name_type_code":108,
"official_status":"G",
"language_code":"NO",
"ssr_id":1935,
"display_name":"Hoggandvik",
"municipality_code":"1002",
"county_code":"10",
"coordinates":[
58.039100000000005,
7.363375
]
}
+ Response 200 (application/geojson)
{
"type":"Feature",
"properties":{
"id":3380
},
"geometry":{
"type":"Point",
"coordinates":[
5.860310999999999,
58.496517000000004
]
}
}