H
H
hollanditkzn2017-10-16 11:45:48
JavaScript
hollanditkzn, 2017-10-16 11:45:48

What data to store in the database of latitude and longitude?

How to get the correct data on latitude and longitude, it displays 2 arrays there, then how to determine which one is correct and which value is better to store in the database?
THEN, let's say Batyrshina 16 is there, then it outputs 2 arrays
(2) [Array(2), Array(2)]
0 : (2) [55.82173, 49.051159]
1 : (2) [55.826352, 49.059369]
Here are the sources https:/ /jsfiddle.net/rusline/007h27ss/14/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hollanditkzn, 2017-10-16
@hollanditkzn

mletov I caught up, it is necessary not to look in properties, but in geometry.getCoordinates()
As in the example https://jsfiddle.net/rusline/007h27ss/18/

M
mletov, 2017-10-16
@mletov

So take a few real addresses for testing, enter coordinates from the first array and from the second into the map search, draw conclusions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question