-
Notifications
You must be signed in to change notification settings - Fork 5
/
geoplugin.yaml
156 lines (156 loc) · 4.58 KB
/
geoplugin.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
openapi: 3.0.3
info:
title: geoplugin.net API
version: 1.0.0
description: An API for geolocation and reverse geocoding using IP addresses, latitude and longitude coordinates, and postal codes.
servers:
- url: http://www.geoplugin.net
description: Base URL for all endpoints
paths:
/json.gp:
get:
summary: Get geolocation information for an IP address
description: Get geolocation information for an IP address
operationId: getGeoLocationInformation
parameters:
- in: query
name: ip
schema:
type: string
required: true
description: The IP address to look up
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
tags:
- Geolocation
/extras/location.gp:
get:
summary: Reverse geocode a latitude and longitude coordinate to a place
description: Reverse geocode a latitude and longitude coordinate to a place
operationId: reverseGeocodeToPlace
parameters:
- in: query
name: lat
schema:
type: number
format: float
required: true
description: The latitude coordinate to reverse geocode
- in: query
name: lon
schema:
type: number
format: float
required: true
description: The longitude coordinate to reverse geocode
- in: query
name: format
required: true
schema:
type: string
enum: [json]
description: |
The format of the output (default: xml)
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
tags:
- Reverse Geocoding
/extras/nearby.gp:
get:
summary: Find places nearby a geographical location
description: Find places nearby a geographical location
operationId: findNearby
parameters:
- in: query
name: ip
schema:
type: string
description: The IP address to use as the geographical location (if not specified, uses the IP address of the client)
- in: query
name: lat
schema:
type: number
format: float
description: The latitude coordinate to use as the geographical location (if not specified, uses the IP address of the client)
- in: query
name: lon
schema:
type: number
format: float
description: The longitude coordinate to use as the geographical location (if not specified, uses the IP address of the client)
- in: query
name: limit
schema:
type: integer
description: |
The maximum number of results to return (default: no limit)
- in: query
name: radius
schema:
type: integer
description: |
The radius (in miles) of the search for nearby places (default: no radius)
- in: query
name: format
required: true
schema:
type: string
enum: [json]
description: |
The format of the output (default: xml)
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
tags:
- Nearby Places
/extras/postalcode.gp:
get:
summary: Reverse geocode a latitude and longitude coordinate to a postal code
description: Reverse geocode a latitude and longitude coordinate to a postal code
operationId: reverseGeocodeToPostalCode
parameters:
- in: query
name: lat
schema:
type: number
format: float
required: true
description: The latitude coordinate to reverse geocode
- in: query
name: lon
schema:
type: number
format: float
required: true
description: The longitude coordinate to reverse geocode
- in: query
name: format
required: true
schema:
type: string
enum: [json]
description: |
The format of the output (default: xml)
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
tags:
- Reverse Geocoding