I wanted to check if you can get more accuracy in the location of the device by GPS than using the SensorLocation component of MIT App Inventor and Kodular.
I built the extension KIO4_LocationSensor.aix, which I could get:
Latitude, Longitude, Altitude, Speed (m / s), bearing, bearingTo, distanceTo, getTime and convert.
bearingTo and distanceTo refers to the Properties: LatitudeTo and LongitudeTo
adminArea, countryCode, countryName, feature, locality, phone, postalCode, premises, subAdmin, subLocality, subThoroughfare, thoroughfare, url
declination, fieldStrength, horizontalStrength, inclination, x, y, z
all in the same extension, as we can see in:
Create Build Crear App Inventor Extensiones Extensions. Sensor de localización. Geo localización. Campo magnético. (here in Spanish)
I noticed that the accuracy is similar to that of the SensorLocation component, so I tried to obtain the location data through NMEA, for that I used the class:
GpsStatus.NmeaListener | Android Developers, was deprecated in API level 24.
Then I used the new class:
OnNmeaMessageListener | Android Developers
With this class we can obtain the Nmea data, the longitude and latitude data are similar to that of the LocationSensor component, but we can obtain other data such as number of satellites, hdop, geoidal, magnetic var., Course mg, therefore they are two different extensions .