Answer the question
In order to leave comments, you need to log in
How to compare Leaflet.js coordinates with Yandex coordinates?
Runtastic is an application for fixing the routes you have traveled. This route (lines on the leaflet map) needs to be transferred to Yandex maps. I opened the page code - and the usual coordinates are not close there. There is no way to change Yandex.maps to leaflet. What to do? Is there a way to quickly convert lines from one card to another?
Code example:
Answer the question
In order to leave comments, you need to log in
It’s not clear what coordinates are familiar to you and what did you see there?
It is also not entirely clear with the transformation of the line, well, in Yandex, the method for creating the line is called differently, the parameters are the same there - the coordinates of the points.
Thank you for your response!
The usual coordinates (Yandex) are longitude and latitude with preferably 18 characters after the point
. Example: 55.765382, 37.629405
and there is nothing like this in the Runtastic code (maps on Leaflet.js), the line code looks like this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question