@@ -93,34 +93,9 @@ The fastest way to use it privately on PaaS available
93
93
94
94
#### Query strings
95
95
96
- | Params | Description | Required |
97
- | ------ | ----------- | :------: |
98
- | q | keywords | [x] |
99
-
100
- ### Search by Coordinates
101
-
102
- ```
103
- [ ENDPOINT] /detect
104
- ```
105
-
106
- <pre>
107
- [GET] <a href="https://kodepos.vercel.app/detect/?latitude=-6.547052&longitude=107.3980201">http://localhost:3000/detect/?latitude=-6.547052&longitude=107.3980201</a>
108
- </pre>
109
-
110
- #### Query strings
111
-
112
- | Params | Description | Required |
113
- | --------- | ----------- | :------: |
114
- | latitude | - | [x] |
115
- | longitude | - | [x] |
116
-
117
- ### Basic Usage
118
-
119
- #### Request
120
-
121
- <pre>
122
- curl -XGET '<a href="https://kodepos.vercel.app/search/?q=danasari">http://localhost:3000/search/?q=danasari</a>'
123
- </pre>
96
+ | Params | Description | Required |
97
+ | ------ | --------------- | :------: |
98
+ | q | Search keywords | ✅ |
124
99
125
100
#### Response
126
101
@@ -177,6 +152,44 @@ curl -XGET '<a href="https://kodepos.vercel.app/search/?q=danasari">http://local
177
152
}
178
153
```
179
154
155
+ ### Search by Coordinates
156
+
157
+ ```
158
+ [ENDPOINT] /detect
159
+ ```
160
+
161
+ <pre >
162
+ [GET] <a href =" https://kodepos.vercel.app/detect/?latitude=-6.547052&longitude=107.3980201 " >http://localhost:3000/detect/?latitude=-6.547052&longitude=107.3980201</a >
163
+ </pre >
164
+
165
+ #### Query strings
166
+
167
+ | Params | Description | Required |
168
+ | --------- | ------------------ | :------: |
169
+ | latitude | Location latitude | ✅ |
170
+ | longitude | Location longitude | ✅ |
171
+
172
+ #### Response
173
+
174
+ ``` json
175
+ {
176
+ "statusCode" : 200 ,
177
+ "code" : " OK" ,
178
+ "data" : {
179
+ "code" : 41152 ,
180
+ "village" : " Kembangkuning" ,
181
+ "district" : " Jatiluhur" ,
182
+ "regency" : " Purwakarta" ,
183
+ "province" : " Jawa Barat" ,
184
+ "latitude" : -6.5495591 ,
185
+ "longitude" : 107.4121855 ,
186
+ "elevation" : 112 ,
187
+ "timezone" : " WIB" ,
188
+ "distance" : 1.5894826841413479
189
+ }
190
+ }
191
+ ```
192
+
180
193
### Showcase
181
194
182
195
List of awesome projects powered by this API
0 commit comments