GPS coordinate precision on the Location model

Hello,

I started playing with the Geolocation, and I find that the DataTypes.Double seems too imprecise to me, ideally we should keep 4 digits after the decimal point.

What do you think?

Oh? How precise would you like it to be?

It’s quite precise for me though..

I think it should depend on the coordinates.

If you are, say, at 45.0127 -1.5301
Rounding to 45.01 - 1.53 shouldn’t change much, but if you are at 45.0193 - 1.5389, that changes things.

For my part, at home, I am seen about a hundred meters from my real position. It’s not dramatic, but I am on the edge of the home area I have drawn :slight_smile:

Example:
47.50763992877163, 0.25740756214141575
This is the gas station:

Rounding to 47.50 0.25

Are you sure about the data you’re sending?

I just went to check, we store more than 6 digits after the decimal point in the DB:

See my personal DB:

Oh, I’ll check that, I had an error trying to save without truncating.

Indeed, I think my initial error was related to the fact that I was sending a string and not a float.. I concluded too quickly that it was an error with numbers after the comma… it was the name DOUBLE that misled me.

So there’s no problem, sorry :shushing_face: