address-autocomplete | Polymer address form element that offers suggestions | Web Framework library
kandi X-RAY | address-autocomplete Summary
kandi X-RAY | address-autocomplete Summary
A Polymer address form element that offers suggestions from the Google Maps API as you type.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of address-autocomplete
address-autocomplete Key Features
address-autocomplete Examples and Code Snippets
Community Discussions
Trending Discussions on address-autocomplete
QUESTION
I'm trying to enter an address then they propose me some addresses and I had no idea how to select the first option they give me.
If you want to try, at the second step on this link: https://www.sneakql.com/en-GB/launch/culturekings/womens-air-jordan-1-high-og-court-purple-au/register
...ANSWER
Answered 2021-Jun-01 at 15:24Try clicking on the first option with this:
QUESTION
I have an input field (let's call it $addressInput) in which I ask the user to provide his address.
I then use this address in my back-end to retrieve the latitude and the longitude of the address.
For some addresses, like for example this one "214 Avenue du Général Leclerc, Eaubonne, France", if a user enters this address, google maps autocomplete will suggest two different addresses to the user in the autocomplete dropdown. The first one (= suggestion A) is "214 Avenue du Général Leclerc, Eaubonne, France" and the second one (=suggestion B) is "214 Rue du Général Leclerc, Eaubonne, France".
But if the user clicks on suggestion A, although the input is filled with "214 Avenue du Général Leclerc, Eaubonne, France", the real formatted_address returned by google maps autocomplete is not the same as suggestion A, it is "214 Avenue de la Division Leclerc, 95160 Montmorency, France".
Why doesn't google maps autocomplete suggest straight away the real formatted_value in the dropdown? Why does it show the user an adress in the dropdown, but internally uses a different formatted address? Is it possible to force the autocomplete API to display the formatted_address in the choice dropdown? In this case, I would have suggestion A = "214 Avenue de la Division Leclerc, 95160 Montmorency, France" (instead of "214 Avenue du Général Leclerc ...") and suggestion B = "214 Rue du Général Leclerc, Eaubonne, France"
Please find below the code that allowed me to know this:
...ANSWER
Answered 2018-May-12 at 13:59To understand what is happening you should have a look at the place ID of the first suggestion. It is EjEyMTQgQXZlbnVlIGR1IEfDqW7DqXJhbCBMZWNsZXJjLCBFYXVib25uZSwgRnJhbmNl
.
When you see these long place IDs instead of something like ChIJHzwQtJeLGGARxaSLI71pDSY
that means the address doesn't exists in Google database. Autocomplete accepts your input because they assume that you might know better than Google the exact address. So they create the interpolated place ID (the long one) and pass it to details. The details, however, searches existing places that might match the user's input, so they resolve you long place ID EjEyMTQgQXZlbnVlIGR1IEfDqW7DqXJhbCBMZWNsZXJjLCBFYXVib25uZSwgRnJhbmNl
to the existing place ID ChIJ31WNvopo5kcRoAlv3ui0Aj0
214 Avenue de la Division Leclerc, 95160 Montmorency, France.
This misbehavior for interpolated place IDs was reported in Google issue tracker and it is handled in bug
https://issuetracker.google.com/issues/35823492
According to the last messages Google is currently working on solving this problem. Feel free to star the bug to add your vote and subscribe to notifications.
Is it possible to force the autocomplete API to display the formatted_address in the choice dropdown?
In order to do this you need to create the missing address '214 Avenue du Général Leclerc, Eaubonne, France' in Google database. The only option is report missing address to Google sending a feedback as described in support help:
https://support.google.com/maps/answer/3094045?hl=en&ref_topic=3093612
Once Google adds missing address the autocomplete should work as expected.
QUESTION
I have an address drop-down list. If the address that I typed is not listed then there is a footer option 'Address not listed? Show more ?' When I select that option it's giving me an option to manually enter my address. I want to select that 'Address not listed? Show more ?' option.
In my code, I have the following support method to select the address by index. But I want to select by a given text. Helps much appreciated. Thanks
...ANSWER
Answered 2019-Jul-22 at 07:48cssContainingText
is the easiest way to find elements by text most of the time.
In your case it would look like (note the spaces at beginning and end of string)
QUESTION
Parts of my app are built using VueJS. The complete app is built on top of the Laravel framework, so I use Laravel Mix to compile my css/js-assets. To gather a better overview, I've put parts of my application in seperated packages, e.g.:
- app
- bootstrap
- config
- ...
- packages
- catalog
- resources
- js
- Components
- CatalogComponentA.vue
- ...
- catalog.js
- ...
- resources
- assets
- js
- VueComponents
- ComponentA.vue
- ...
- app.js
Running npm locally (either in Homestead/Vagrant or under my OS) works absolutely fine. Deploying it to my webserver results in an error saying that the dependencies were not found:
...ANSWER
Answered 2019-Jun-18 at 07:52The problem were the file-endings. The components which could not be loaded had an uppercase file extension (.Vue
instead of .vue
). Because my server OS is case sensitive, it couldn't load the modules..
QUESTION
I have a form with a field that needs to show suggestions via an api call. The user should be allowed to select one of those options or not and that value that they type in gets used to submit with the form, but this field is required. I am using Formik to handle the form, Yup for form validation to check if this field is required, downshift for the autocomplete, and Material-UI for the field.
The issue comes in when a user decides not to use one of the suggested options and the onBlur triggers. The onBlur always resets the field and I believe this is Downshift causing this behavior but the solutions to this problem suggest controlling the state of Downshift and when I try that it doesn't work well with Formik and Yup and there are some issues that I can't really understand since these components control the inputValue of this field.
Heres what I have so far:
...ANSWER
Answered 2019-Mar-13 at 16:51Got it to work. Needed to use handleOuterClick and set the Downshift state with the Formik value:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install address-autocomplete
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page