von Dezimalzahlen in Grad conver können Sie tun, folgen als
String strLongitude = location.convert(location.getLongitude(), location.FORMAT_DEGREES);
String strLatitude = location.convert(location.getLatitude(), location.FORMAT_DEGREES);
Referenz android developer site ist.
bearbeiten
Ich habe folgende Sache ausprobiert und die Ausgabe erhalten:
strLongitude = Location.convert(location.getLongitude(), Location.FORMAT_DEGREES);
strLatitude = Location.convert(location.getLatitude(), Location.FORMAT_DEGREES);
OUTPUT : Long: 73.16584: Lat: 22.29924
strLongitude = Location.convert(location.getLongitude(), Location.FORMAT_SECONDS);
strLatitude = Location.convert(location.getLatitude(), Location.FORMAT_SECONDS);
OUTPUT : Long: 73:9:57.03876: Lat: 22:17:57.26472
strLongitude = Location.convert(location.getLongitude(), Location.FORMAT_MINUTES);
strLatitude = Location.convert(location.getLatitude(), Location.FORMAT_MINUTES);
OUTPUT : Long: 73:9.95065: Lat: 22:17.95441
andere Option Versuchen Sie, wie pro Ihre Anforderung
prüfen diese http://Paketüberfluss.com/questions/8851816/konvertieren-dezimal-koordinieren-in-grad-minuten-sekunden-richtung –