@Embeddable public class GeoLocation extends DomainObject
Constructor and Description |
---|
GeoLocation() |
GeoLocation(Number lat,
Number lang) |
GeoLocation(Number lat,
Number lang,
Number alt) |
GeoLocation(String json) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object geo) |
Float |
getAlt() |
static float |
getEarthDistance(GeoLocation location1,
GeoLocation location2)
Return Earth distance between 2
GeoLocation s; accounting for altitude as well (if present) |
float |
getFlatDistance()
Translate Latitude & Longitude in terms of a single dimensional scalar
that equates to the distance from the origin.
|
Float |
getLang() |
Float |
getLat() |
int |
hashCode() |
void |
setAlt(Float alt) |
void |
setLang(Float lang) |
void |
setLat(Float lat) |
String |
toString() |
public GeoLocation()
public GeoLocation(String json)
public Float getLat()
public void setLat(Float lat)
lat
- the lat to setpublic Float getLang()
public void setLang(Float lang)
lang
- the lang to setpublic Float getAlt()
public void setAlt(Float alt)
alt
- the alt to setpublic float getFlatDistance()
public static float getEarthDistance(GeoLocation location1, GeoLocation location2)
GeoLocation
s; accounting for altitude as well (if present)location1
- as GeoLocation
location2
- as GeoLocation
Copyright © 2018. All rights reserved.