Translation of LatLng coordinates(longitude, latitude) to a rectangular coordinate system(meters.)

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

Author: Denis, 2017-09-08

1 answers

The necessary functionality was 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.70589118626 E 6293516.067325422 N, where the values 371734.70589118626 E 6293516.067325422 N are expressed in meters.

 1
Author: Denis, 2017-09-13 06:22:11