public static class GeoUtils.Point extends Object implements Serializable
坐标系转换代码参考自: https://blog.csdn.net/a13570320979/article/details/51366355
| Constructor and Description |
|---|
Point(double longitude,
double latitude) |
Point(double longitude,
double latitude,
GeoUtils.PointType type)
构造器
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(GeoUtils.Point point) |
boolean |
equals(Object o) |
double |
getLatitude() |
double |
getLongitude() |
GeoUtils.PointType |
getType() |
int |
hashCode() |
boolean |
isValidCoordinate() |
boolean |
notInChina() |
GeoUtils.Point |
retain6() |
void |
setLatitude(double latitude) |
void |
setLongitude(double longitude) |
void |
setType(GeoUtils.PointType type) |
GeoUtils.Point |
toBd09() |
GeoUtils.Point |
toGcj02() |
Point2D.Double |
toPoint2D() |
GeoUtils.Point |
toWgs84() |
public Point(double longitude,
double latitude,
GeoUtils.PointType type)
longitude - 经度latitude - 纬度type - 坐标点类型, 默认为WGS84public Point(double longitude,
double latitude)
public double getLongitude()
public void setLongitude(double longitude)
public double getLatitude()
public void setLatitude(double latitude)
public GeoUtils.PointType getType()
public void setType(GeoUtils.PointType type)
public Point2D.Double toPoint2D()
public GeoUtils.Point toGcj02()
public GeoUtils.Point toWgs84()
public GeoUtils.Point toBd09()
public GeoUtils.Point retain6()
public boolean notInChina()
public double distance(GeoUtils.Point point)
point - 坐标点public boolean isValidCoordinate()
Copyright © 2019. All rights reserved.