public class GeoBeaconUtil
extends java.lang.Object
Constructor and Description |
---|
GeoBeaconUtil() |
Modifier and Type | Method and Description |
---|---|
static GeoBeaconMessage |
blaubotMessageToGeoBeaconMessage(BlaubotMessage msg) |
static double |
distanceBetweenGeoBeaconMessages(GeoData geoData1,
GeoData geoData2)
Calculates the distance between two coordinates in KM using the harvesine formula.
|
static BlaubotMessage |
geoBeaconMessageToBlaubotMessage(GeoBeaconMessage message)
Wraps a geo beacon message into a blaubot message
|
static void |
main(java.lang.String[] args) |
public static BlaubotMessage geoBeaconMessageToBlaubotMessage(GeoBeaconMessage message)
message
- the messagepublic static GeoBeaconMessage blaubotMessageToGeoBeaconMessage(BlaubotMessage msg)
public static double distanceBetweenGeoBeaconMessages(GeoData geoData1, GeoData geoData2)
geoData1
- containing lat and longeoData2
- containing lat and lonpublic static void main(java.lang.String[] args)