This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the differnet latitudeE6 and latitude

 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try it this way:-


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


Transmission rebuild
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!