• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is the differnet latitudeE6 and latitude

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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! ;)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can try it this way:-


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


Transmission rebuild
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic