Help with the location sensor

I want to get the full parameters of the location sensor. 10.123456, instead of 10.1234

The location sensor already provides 6 digits after the decimal point.

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

I think it has only 5 decimals digits of precission and not 6.

PIC 1
MY RESULTS: 10.56675,106.7303

Try to use maths block, format the number with 6 digit.

Can you tell me if that's correct?

This is wrong
Do it rhe other way around

What about testing it to see it yourself?
From the documentation

format as decimal

Formats a number as a decimal with a given number of places after the decimal point. The number of places must be a non-negative integer. The result is produced by rounding the number (if there were too many places) or by adding zeros on the right (if there were too few).

Taifun

This is an older post from when most gps hardware provided only 5 digits. New chip sets provide up to 6 on some cell phone hardware. However

What do the 'extra' decimal places get you? With App Inventgor's LocationSensor's algorithms.The LocationSensor uses the NEMA $GPRMC string to report it’s geocoordinates using only the original available satellite constellations. Some newer hardware will use more constellations and provide a 6 th decimal place.

What do more places get you? Actually nothing because ordinary cell phone gps radios only can resolve at best about 2 meters. Sometimes a little more. Devices with better chips might resolve more BUT only when they use an algorithm that can use the newer satellite constellations.

What a fractional degree of latitude resolves approximately:
Decimal places Degrees Distance
0--------------------- 1.0---------- 111 km
1--------------------- 0.1----------- 11.1 km
2--------------------- 0.01-------- 1.11 km
3--------------------- 0.001------- 111 m
4--------------------- 0.0001----- 11.1 m
5--------------------- 0.00001---- 1.11 m
6--------------------- 0.000001-- 111 mm

.

1 Like

Great. As a mnemonic: the 5th decimal place of latitude is approximately 1 meter, anywhere in the world.

However, to convert between degrees of longitude and meters, you need to multiply by the cosine of the latitude at that point.