Unfortunately, I do not understand what meters you mean.
Usually the following terms are used in maps:
Geographical coordinates, tile coordinates (tile position), Mercator coordinates.
Meters are used for distances. But this is not used for internal calculations.
Most likely you mean the tile coordinates.
You can always convert double to int (or long), if you only need to know the tile index.
But you can not convert int to double to find out where exactly in the tile is some kind of coordinate.
Using of double is not a bottleneck and does not have any significant effect on performance and memory usage in 99.9% of applications.
So using double has only positive sides.
The methods for C # from OpenStreetMap...
What is it?
I could not find anything suitable in Google.
Please send me a link. It is very interesting to me.
All the others, no matter what I try, give excellent results, and as a result, the results are not correct, including your convertation methods too) How so?)
I'm not sure I understand what you meant.
You mean that (for example) by converting geographic coordinates into tile coordinates, and then converting back you have a slightly different result, right?
This is a floating-point error.
But it is small enough to ignore it.
Infinity Code Team