Skip to content

remove autocomplete unused request fields #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions PlaceAutocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,10 @@ Request structure for this service mirrors [Google's request structure](https://
|----|----|----|----|----|
|`input`|`string`|True|`"Harbi"`||
|`session_token`|`string`|True|-|Must be UUID.|
|`offset`|`number`|False|`2`|Must be greater than 0 and less than input lenght|
|`location`|`object`|False|-|See below for structure|
|`origin`|`object`|False|-|See below for structure|
|`radius`|`number`|False|`5000`|Meters|
|`strict_bounds`|`boolean`|False|`true`||
|`language`|`string`|False|`"et"`|See [supported languages](https://developers.google.com/maps/faq#languagesupport)|
|`components`|`array[string]`|False|`["US", "CA", "CN"]`|No more than 5 countries. Must be ISO 3166-1 Alpha-2|
|`types`|`string`|False|`"(regions)"`|See [place types](https://developers.google.com/places/web-service/autocomplete#place_types)|

#### `location` and `origin`
|Field|Type|Required|Example|Note|
|----|----|----|----|----|
|`latitude`|`number`|True|45.7576||
|`longitude`|`number`|True|126.6409||

#### Examples

Only required fields w/ a city:
Expand Down Expand Up @@ -110,17 +99,6 @@ All fields:
{
"input": "Harbi",
"session_token": "<UUID_TOKEN>",
"offset": 4.0,
"location": {
"latitude": 45.7576,
"longitude": 126.6409
},
"origin": {
"latitude": 45.818107,
"longitude": 126.599279
},
"radius": 50000,
"strict_bounds": true,
"language": "zh-cn",
"components": ["CN", "US", "CA", "ET", "FR"],
"types": "(regions)"
Expand Down