LocationSensor Extension. Accuracy. Geocoder. GeomagneticField

Hello friends,

this Extension is about:

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: Bearing (navigation) - Wikipedia
Bearing online: Distance direction calculating between two location on the planet directly on the map

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 classe:

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):

4.- This app uses LocationSensor Extension (black text) and LocationSensor of Kodular (blue text).


On the Map Screen, the coordinates of the red dot are obtained with the Extension and those of the blue dot with Kodular.

p185C_sensorlocalizacion.aia (33.5 KB)

5.- You can also use Google Maps:

185C_sensorlocalizacion_K.aia (33.7 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

25 Likes

Cool extention was created by @juananton1991. That will. Be work on offline!

2 Likes

And where is your actual location in the map?

1 Like

Actual position is red dot.

1 Like

Why distance showing like this

1 Like

DistanceTo is distance to Properties LatitudeTo and LongitudeTo in meters. It is a String.

2 Likes

How can i convert it in km & the time returns in??

1 Like

To km, meters/1000

time are mileseconds from 1 january 1970

2 Likes

How can use this string.i mean how can i extract long & lat from this string

1 Like

lattlongg

1 Like

Sorry sorry sorry, for disturbing you again & again you are saying that distance to properties return long & lat so how can i divided long & lat from this string

1 Like

what about providing an example output, so everybody could help and also those, who are not familiar with that extension?

Taifun

3 Likes

Example:

Distance from Lisboa (Portugal) (38.707536, -9.136444) To actual Location, in meters, kilometers and miles.

LocationSensor_Extension_Distance.aia (23.9 KB)
LocationSensor_Extension_Distance.apk (5.4 MB)

5 Likes

Here is the picture of the result

1 Like

This problem was solved nut the last problem with time i want to make millisecond to time on this format hh:mm:ss.i tryied this but that was not working

1 Like

Use Clock component with timestamp or Clock.Now

2 Likes

what about providing your solution to the problem then?
Taifun

2 Likes

@juananton1991
It sounds Amazing
But i have one query Is there any limit of this extension?
Mean how many requests it can handel per day?
Max limit?

1 Like

There are no limits, GPS satellites are continuously sending data.

2 Likes

Ok got it thanks

1 Like