S
S
SM_ST2021-04-08 16:04:51
JavaScript
SM_ST, 2021-04-08 16:04:51

Is it possible to parse data from Google Autocomplete?

Good afternoon, the project on Nuxt I

implement google autocomplete

there is a field

<div class="form-group">
            <label for="" class="form-label">Адрес магазина</label>
            <input
              id="searchTextField"
              v-model="form.address"
              type="text"
              class="form-control form-control__large"
              placeholder="Астраханский переулок, д. 5 корпус"
            />
          </div>


and binding the results to that field

const input = document.getElementById('searchTextField')
    this.autocomplete = new window.google.maps.places.Autocomplete(input)


is it possible to somehow parse the result from google to display addresses and cities for your layout, instead

606eff6e4e6dd977447347.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2021-04-08
@frankieksai

https://dadata.ru/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question