Answer the question
In order to leave comments, you need to log in
Location api yandex?
There is a script that determines the user's city
window.onload = function () {
var city = ymaps.geolocation.city;
if (city == 'Наро-фоминск') {
jQuery("#user-city").text('НАРО-ФОМИНСКИЙ РАЙОН');
} else if (city == 'Апрелевка') {
jQuery("#user-city").text('Апрелевка');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question