Answer the question
In order to leave comments, you need to log in
How to pass latitude and longitude correctly when using Yandex.Map API?
Please tell me: there is such a piece of code, it draws a label on the map, everything is according to the manual.
var latitude = 59.963314;
var longitude = 30.267754;
var placemark = new ymaps.Placemark([latitude, longitude]);
myMap.geoObjects.add(placemark);
....
var latitude = parseFloat(obj[0].latitude.trim());
var longitude = parseFloat(obj[0].longitude.trim());
console.log(latitude);
console.log(longitude);
var placemark = new ymaps.Placemark(latitude, longitude);
myMap.geoObjects.add(placemark);
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