Android google map accuracy issue
I am developing android version of an iPhone application. But, I found that in android, google map takes latitude E6 and longitude E6 integer values as GeoPoint argument.
As a result, whenever I have a lat/long value like 35.1234567 it means that there is 7 digits after the decimal point. As a result, (int)(35.1234567*E6) p开发者_运维问答rovides 35123456. So, I am definitely missing the precision as it misses the 7th digit (7 in this case).
So, I found different location in my android googlemap and in iphone map.
Is there anyway that can fix this issue ?
Worst case scenario is at the equator where one degree in Longitude is 111.320km. With the E6 number you are able to represent 0.000001 degree or a distance of 0.11132m (less than 4.5 inches). You are never going to get that level of accuracy out of a GPS system available to the public anyway, so the loss of a single digit of precision will never be noticed.
精彩评论