I’m trying to construct a GeoPoint from 2 Decimal. The issue I am facing is the GeoPoint constructor expects 2 ints in E6 format. So with literals it is easy:
GeoPoint point = new GeoPoint((int)61.54367E6, (int)-149.768E6);
But if my inputs are stored as Decimal what do I do?
Decimal Latitude = 61.54367;
Decimal Longitude = -149.768;
1 Answer