Here you can find the source of convertGeoCoordinateToDouble(int point)
Parameter | Description |
---|---|
point | a parameter |
public static double convertGeoCoordinateToDouble(int point)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { private final static int LAT_LONG_CONVERSION_FACTOR = 10000000; private final static int LAT_LONG_DECIMAL_PRECISION = 7; /**// w w w. ja va2s . co m * Takes a Lat or Long as an int and converts to a double. * @param point * @return */ public static double convertGeoCoordinateToDouble(int point) { double convertedPoint = ((double) point) / LAT_LONG_CONVERSION_FACTOR; BigDecimal bd = new BigDecimal(convertedPoint); bd.setScale(LAT_LONG_DECIMAL_PRECISION, BigDecimal.ROUND_HALF_UP); return bd.doubleValue(); } }