android - The format to store gps data -


I am trying to store GPS data in the SQL database. I retrieve data from a KML file via DDS and I store it in a geo-point like this:

  GeoPoint p = new GeoPoint (latitude, longitude)   

The problem is that accepts geopoint () LAN and only as AX, because it is not defined for two formats. Now if I have 45.3242355 longitude, then it is stored in the intersection of int-453242355. And I want to use it to draw a line on the map between geo-points, but I can extract this format of integers out of the range of latitude and longitude. Can anyone tell me how should I get back my actual form data?

convert it to 10 ^ -6 (1a-6) (and double to its integer format For, multiply by 10 ^ 6 (1 A6)) The integer format data used by GeoPoint is not lost, as per the specification, it is in microdigridge instead of just the degree.

(This is how a currency field can store a value of $ 2.36, simplifying "236" arithmetic and avoiding expensive float math and FP errors).

Comments