N
N
Nikita Ivanov2015-03-09 18:11:27
JavaScript
Nikita Ivanov, 2015-03-09 18:11:27

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

1 answer(s)
V
Vitaly Yakovenko, 2015-03-09
@rekurt

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 question

Ask a Question

731 491 924 answers to any question