-
Notifications
You must be signed in to change notification settings - Fork 5
/
hk-geodata.yaml
87 lines (87 loc) · 2.64 KB
/
hk-geodata.yaml
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
openapi: 3.0.0
info:
title: Hong Kong GeoData Store APIs
description: APIs for finding locations, nearby facilities, and discovering facilities in Hong Kong
version: 1.0.0
servers:
- url: https://geodata.gov.hk/gs/api/v1.0.0
paths:
/locationSearch:
get:
summary: Find locations in Hong Kong
description: Find locations in Hong Kong
operationId: locationSearch
parameters:
- in: query
name: q
required: true
description: The input string to search for addresses, building names, place names, or facility names
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
/searchNearby:
get:
summary: Find facilities located within 1 km of a geographic location
description: Find facilities located within 1 km of a geographic location
operationId: searchNearby
parameters:
- in: query
name: x
required: true
description: The coordinate value of HK80 Easting (m)
schema:
type: string
- in: query
name: y
required: true
description: The coordinate value of HK80 Northing (m)
schema:
type: string
- in: query
name: lang
description: The language in the output JSON. Use value "zh" to get search results in Traditional Chinese. Use value "en" to get search results in English.
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
/identify:
get:
summary: Discover facilities at a geographic location
description: Discover facilities at a geographic location
operationId: identify
parameters:
- in: query
name: x
required: true
description: The coordinate value of HK80 Easting (m)
schema:
type: string
- in: query
name: y
required: true
description: The coordinate value of HK80 Northing (m)
schema:
type: string
- in: query
name: lang
description: The language in the output JSON. Use value "zh" to get search results in Traditional Chinese. Use value "en" to get search results in English.
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
type: object