Answer the question
In order to leave comments, you need to log in
Card through which you can specify the address?
I have a task to add a map to the site through which you can get the address. I chose react-yandex-map for this case, and everything seems to be fine, except for one thing. I do not know how to get the data that comes after finding an address, tell me who has already done this, or if you know other options with a map.
Answer the question
In order to leave comments, you need to log in
Are you talking about geocoding?
https://yandex.ru/dev/maps/jsbox/2.1/direct_geocode/
In the example in the dock, firstGeoObject stores everything about the object.
console.log('All geo object data: ', firstGeoObject.properties.getAll());
I had a task finding an object at the address will receive its coordinates from the geocoder.
In this case, add after p.90
something like
setObjNewCoordinates(coords);
function setObjNewCoordinates(сoords) {
// отправляем эти сoords куда-нибудь по аякс
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question