When working with the Google Maps API for Android, coordinates are given in longitude and latitude values. It is required to translate these values ​​into meters. Are there any libraries for this so as not to reinvent the wheel? I am writing in Java.

  • one
    How many meters will be 45 ° N 33 ° W? - default locale
  • 4985032.290487532, 6500000, if I am mistaken, correct me - Denis
  • Interesting, thanks. Perhaps there is something known, but I must confess that I did not understand how these values ​​are calculated. Can explain a technique in the text of a question? Or add a link to it? - default locale
  • one
    For translation, I used the converter from the site . There is still GOST 32453-2013. - Denis
  • It may be useful for the respondents to use info from the site: Для получения плоских прямоугольных координат в принятой на территории Российской Федерации проекции Гаусса—Крюгера используют геодезические координаты на эллипсоиде Красовского... - default locale

1 answer 1

The necessary functionality has been described in the classes of this project. To convert from a geographic coordinate system to UTM, you can use the following code:

 utmCoord = UTMCoord.fromLatLon(Angle.fromDegreesLatitude(latitude), Angle.fromDegreesLongitude(longitude)); 

We get the result in the form: 41 N 371734.70589118626E 6293516.067325422N, where the values ​​371734.70589118626E 6293516.067325422N are expressed in meters.