public class MGpsUtil extends Object
| 构造器和说明 |
|---|
MGpsUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static double[] |
decode_exactly(String geohash) |
static double[] |
decode(String geohash) |
static double |
distanceFromGps(String gs,
double lng,
double lat) |
static String |
encode(double latitude,
double longitude) |
static double |
getPrecision(double x,
double precision) |
static void |
main(String[] args) |
static void |
setPrecision(int precision)
设置精度
|
public static void setPrecision(int precision)
int - precision 设置精确位数,此参数决定了该算法的经度public static double getPrecision(double x,
double precision)
public static String encode(double latitude, double longitude)
public static double[] decode(String geohash)
public static double[] decode_exactly(String geohash)
public static double distanceFromGps(String gs, double lng, double lat)
public static void main(String[] args)
Copyright © 2017. All rights reserved.