File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes what is the differnet  latitudeE6 and  latitude Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "what is the differnet  latitudeE6 and  latitude" Watch "what is the differnet  latitudeE6 and  latitude" New topic
Author

what is the differnet latitudeE6 and latitude

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1071
I need to know what is the
1) what is the different latitudeE6 and latitude ?
2) what is the different longitudeE6 and longitude ?
Michal Krawczyk
Greenhorn

Joined: Oct 15, 2011
Posts: 3
Hi!
the difference is simple. Latitude/Longitude is double number like 57.126847, LatitudeE6/LongitudeE6 is integer value of Latitude/Longitude multiplied by 1.000.000. When you use GeoPoint you have to give integer parameters (LatitudeE6,LongitudeE6) and then you can't give Latitude/Longitude as a double, so you have to miltiply it by 1.000.000. When you use Location it need double values of Latitude/Longtitude.
I hope you understand what I mean ;) If you have another questions - write! ;)
Oneil dilises
Greenhorn

Joined: Oct 17, 2011
Posts: 1
You can try it this way:-


int latE6 = (int) (lat * 1e6);
int lonE6 = (int) (lon * 1e6);


Transmission rebuild
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the differnet latitudeE6 and latitude
 
Similar Threads
Creating Database and Tables
Having issues reRendering a map when a rich:tree node is clicked on(SOLVED)
How to get "closest to" values in a query?
Servlet can't get the xmlhttp post request
is there any way to trigger onLocationChanged other than moving