Answer the question
In order to leave comments, you need to log in
How to transfer the result of geocoding Yandex maps to the database using Laravel?
In general, the essence is this.
Using the form builder in laravel, I made a registration form.
But it is necessary that geocoordinates are also transmitted during registration.
There is an address input field, to which, following the example of dimik.github.io/ymaps/examples/geocoder-form
, I attached
geocoding.
But the problem is that I don't understand how to pass the geocoding coordinates to the form so that they are added to the database, along with the rest of the information.
I am not strong in Java Script, the maximum I did was to display the result in an alert.
The result is correct and correct.
I pray for help.
Answer the question
In order to leave comments, you need to log in
How about this:
Add a hidden field and instead of alert'a javascript set value to this field.
Well, then work as with ordinary text.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question