public class LonLat extends Object implements Value
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_PROJECTION
Default projection
|
| Constructor and Description |
|---|
LonLat(double lng,
double lat)
Creates a new instance.
|
LonLat(double lng,
double lat,
String projection)
Creates a new instance.
|
LonLat(double lng,
double lat,
String projection,
String targetProjection)
Creates a new instance.
|
LonLat(com.vividsolutions.jts.geom.Point point)
Creates a new instance.
|
LonLat(com.vividsolutions.jts.geom.Point point,
String projection)
Creates a new instance.
|
LonLat(com.vividsolutions.jts.geom.Point point,
String projection,
String targetProjection)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getJSconstructor() |
double |
getLat()
Returns the latitude for this coordinate.
|
double |
getLng()
Returns the longitude for this coordinate.
|
com.vividsolutions.jts.geom.Point |
getPoint() |
int |
hashCode() |
static LonLat |
parse(String value)
(37.34068368469045, -122.48519897460936)
|
static LonLat |
parseWithNames(String value)
(lon=37.34068368469045, lat=-122.48519897460936)
|
String |
toString() |
protected static final String DEFAULT_PROJECTION
public LonLat(double lng,
double lat)
lng - Longitude valuelat - Latitude valuepublic LonLat(double lng,
double lat,
String projection)
lng - Longitude valuelat - Latitude valueprojection - Projection for this coordinatepublic LonLat(double lng,
double lat,
String projection,
String targetProjection)
lng - Longitude valuelat - Latitude valueprojection - Projection for this coordinatetargetProjection - Target projection when placing coordinate on mappublic LonLat(com.vividsolutions.jts.geom.Point point)
point - Point coordinatepublic LonLat(com.vividsolutions.jts.geom.Point point,
String projection)
point - Point coordinateprojection - Projection for this coordinatepublic double getLat()
public double getLng()
public String getJSconstructor()
getJSconstructor in interface Valuepublic com.vividsolutions.jts.geom.Point getPoint()
Copyright © 2015. All rights reserved.