Status Update
Comments
ch...@google.com <ch...@google.com> #2
However, looking for keyboard accessibility, we are not able to trigger the information dialog using a keyboard similar to how to map markers can be triggered using arrow keys:
Is there something we can do about it?
Thank you!
Map version: 3.49.12
al...@gmail.com <al...@gmail.com> #3
Thanks for your suggestion!
We'll be reviewing this for further consideration. Please star this issue to get updates and leave comments for additional information. Please note that starring the issue also provides our product team with valuable feedback on the importance of the issue to our customers.
ch...@google.com <ch...@google.com> #4
✨
ca...@google.com <ca...@google.com>
al...@gmail.com <al...@gmail.com> #5
Thanks for clarifying! I see how it's supposed to work now.
I do think it would be helpful for the docs on AutocompleteRequest.sessionToken
to mention that the token is passed through automatically.
For context, we currently use the original Places API, and I'm working to migrate to the new Places API. I had mostly been going call-by-call through the code to identify the updated methods, e.g. AutocompleteService.getPlacePredictions()
--> AutocompleteSuggestion.fetchAutocompleteSuggestions()
. I saw that the equivalent of PlacesService.getDetails()
now seemed to be (new Place({id})).fetchFields()
, and was trying to migrate the old parameters to the new ones. The newer approach does make sense and maybe it would have been more clear if I was starting from scratch.
Thanks again!
Description
Describe your issue
The JavaScript API documentation for the new Places API explains how to use a
sessionToken
when making anAutocompleteRequest
:It says:
However, the documentation for
Place.fetchFields
does not have any mention of asessionToken
parameter:The
Place()
constructor also doesn't mention this as an option either.What's the correct way to pass an
AutocompleteSessionToken
to thefetchFields
call?From testing, it seems that a parameter named
sessionToken
in theFetchFieldsRequest
object will be picked up and passed in the network request. If this is correct, it would be helpful to document it and include it in the official TypeScript typings as well.Please report the version of Google Maps API
Docs as of v3.59