Skip to content

Commit 7c140a7

Browse files
committed
chore: add response in coordinates response
1 parent c5800c0 commit 7c140a7

File tree

1 file changed

+41
-28
lines changed

1 file changed

+41
-28
lines changed

README.md

+41-28
Original file line numberDiff line numberDiff line change
@@ -93,34 +93,9 @@ The fastest way to use it privately on PaaS available
9393
9494
#### Query strings
9595
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 | ✅ |
12499
125100
#### Response
126101
@@ -177,6 +152,44 @@ curl -XGET '<a href="https://kodepos.vercel.app/search/?q=danasari">http://local
177152
}
178153
```
179154

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+
180193
### Showcase
181194

182195
List of awesome projects powered by this API

0 commit comments

Comments
 (0)