Skip to content
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

Как добавить ключ для suggest api? #469

Closed
SerikK opened this issue Sep 20, 2023 · 3 comments
Closed

Как добавить ключ для suggest api? #469

SerikK opened this issue Sep 20, 2023 · 3 comments

Comments

@SerikK
Copy link

SerikK commented Sep 20, 2023

image С недавнего времени нужно задавать ключ для suggest To use a suggest in JS API:

Get the key for the suggest through your personal account.
Specify it when connecting the JS API in the format https://api-maps.yandex.ru/2.1/?lang=ru_RU&apikey=&suggest_api key=.
Как задать ключ для него?

@Timur3222
Copy link

Timur3222 commented Sep 22, 2023

Я вот так ключ добавляю, но все равно эта ошибка выходит.
mapSettings() {
  return {
    apiKey:
      this.$store.getters['app/yandexMapKey'] +
      '&' +
      `suggest_apikey=${this.suggestApiKey}`,
  }
},

Поправочка: ошибка по другой причине выходила.

@illi-homz
Copy link

Я вот так ключ добавляю, но все равно эта ошибка выходит.
mapSettings() {
  return {
    apiKey:
      this.$store.getters['app/yandexMapKey'] +
      '&' +
      `suggest_apikey=${this.suggestApiKey}`,
  }
},

мне помогло, спасибо

@SerikK SerikK closed this as completed Sep 26, 2023
@yusforgithub
Copy link

Помогло, спасибо.

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

No branches or pull requests

4 participants