Hello friends,
this Extension is about:
-
Location, Geocoder and GeomagneticField.
-
Article about GPS Accuracy: https://appinventor.mit.edu/explore/ai2/location-sensor
============================================================
1.- SensorLocation.
- It uses the classes:
https://developer.android.com/reference/android/location/LocationManager.html
https://developer.android.com/reference/android/location/Location
In those pages you can find information about:
getLatitude, getLongitude, getAltitude, getSpeed (m/s), bearing, bearingTo, distanceTo, getTime and convert.
bearingTo and distanceTo refers to the Properties: LatitudeTo and LongitudeTo.
Bearing: https://en.wikipedia.org/wiki/Bearing_(navigation)
Bearing online: https://www.sunearthtools.com/tools/distance.php
2.- Geocoder.
Blocks: getFromLocation and getFromLocationName
Gets:
adminArea, countryCode, countryName, feature, locality, phone, postalCode, premises, subAdmin, subLocality, subThoroughfare, thoroughfare, url
- It uses the classes:
https://developer.android.com/reference/android/location/Address
https://developer.android.com/reference/android/location/Geocoder
3.- GeomagneticField.
Gets:
declination, fieldStrength, horizontalStrength, inclination, x, y, z
- It uses the classes:
https://developer.android.com/reference/android/hardware/GeomagneticField
Read:
https://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml
Earth’s Magnetic North Pole Has Officially Moved (Toward Russia):
https://www.forbes.com/sites/trevornace/2019/12/17/earths-magnetic-north-pole-has-officially-moved-toward-russia/#7688ea47201f
4.- This app uses LocationSensor Extension (black text) and LocationSensor of MIT App Inventor (blue text).
On the Map Screen, the coordinates of the red dot are obtained with the Extension and those of the blue dot with MIT App Inventor.
p185C_sensorlocalizacion.aia (33.5 KB)
You can download the com.KIO4_LocationSensor.aix extension of:
http://kio4.com/appinventor/285C_extension_sensor_localizacion.htm
Regards,
Juan Antonio Villalpando.
http://kio4.com/appinventor/index.htm#extensiones