Skip to content

Parameter session_token in places_autocomplete should be optional - #287

Merged
amuramoto merged 1 commit into
googlemaps:masterfrom
davidrobles:autocomplete-optional-session-token
Aug 9, 2019
Merged

Parameter session_token in places_autocomplete should be optional#287
amuramoto merged 1 commit into
googlemaps:masterfrom
davidrobles:autocomplete-optional-session-token

Conversation

@davidrobles

Copy link
Copy Markdown
Contributor

The official docs of the Places Autocomplete API:

https://developers.google.com/places/web-service/autocomplete

have the sessiontoken parameter as optional.

Screenshot 2019-08-07 13 08 12

However, the places_autocomplete function has it as required:

def places_autocomplete(client, input_text, session_token, offset=None,
location=None, radius=None, language=None, types=None,
components=None, strict_bounds=False):

I think it should be optional to be consistent with the API, and to avoid having the users to generate a session token when they don't need to identify an autocomplete session for billing purposes.

The official docs of the Places API has the session_token parameter as
optional. This change makes it optional too in the library to keep it in
sync.
@googlebot

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@davidrobles

Copy link
Copy Markdown
Contributor Author

@googlebot I signed it!

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@amuramoto
amuramoto merged commit 9e5a65d into googlemaps:master Aug 9, 2019
@amuramoto

Copy link
Copy Markdown
Member

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants