You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
При ymaps.suggest(inputValue, { results: 5, types: 'locality'})
указанный types проигнорируется и в запросе будет указан 'geo'.
Единственное решение по изменению types на 'locality', которое я нашел, это в ручную отправлять запрос:
method: 'get',
url: https://suggest-maps.yandex.ru/v1/suggest,
params: {
apikey: yourKey,
text: inputValue,
results: 5,
types: 'locality',
}
Есть ли другие решения?
The text was updated successfully, but these errors were encountered:
Пишу на реакте, столкнулся с задачей поменять URL и Method, ничего не нашел и просто переопределил методы XMLHttpRequest'a (xhr.open, xhr.send)
Это решило мою проблему, все работало с подсказками, как мне нужно и не вмешался в логику работы
Задача возникла из-за платного ключа, который на клиенте палить не хотелось
При
ymaps.suggest(inputValue, { results: 5, types: 'locality'})
указанный types проигнорируется и в запросе будет указан 'geo'.
Единственное решение по изменению types на 'locality', которое я нашел, это в ручную отправлять запрос:
method: 'get',
url:
https://suggest-maps.yandex.ru/v1/suggest
,params: {
apikey: yourKey,
text: inputValue,
results: 5,
types: 'locality',
}
Есть ли другие решения?
The text was updated successfully, but these errors were encountered: