|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaron.gps.GPSUtil
public class GPSUtil
The GPSUtil
class provides some utility functionality
for the GPS data handling.
Constructor Summary | |
---|---|
GPSUtil()
|
Method Summary | |
---|---|
static double |
getDistance(double lat1,
double lon1,
double lat2,
double lon2)
Returns the distance between two locations. |
static double |
getDistance(Latitude lat1,
Longitude lon1,
Latitude lat2,
Longitude lon2)
Returns the distance between two locations. |
static double |
getDistance(Trackpoint p1,
Trackpoint p2)
Returns the distance between two locations. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPSUtil()
Method Detail |
---|
public static double getDistance(double lat1, double lon1, double lat2, double lon2)
lat1
- the latitude coordinate of the first locationlon1
- the longitude coordinate of the first locationlat2
- the latitude coordinate of the second locationlon2
- the longitude coordinate of the second location
public static double getDistance(Latitude lat1, Longitude lon1, Latitude lat2, Longitude lon2)
lat1
- a Latitude
object containing the latitude coordinate of the first locationlon1
- a Latitude
object containing the longitude coordinate of the first locationlat2
- a Latitude
object containing the latitude coordinate of the second locationlon2
- a Latitude
object containing the longitude coordinate of the second location
public static double getDistance(Trackpoint p1, Trackpoint p2)
p1
- a Trackpoint
object containing the first locationp2
- a Trackpoint
object containing the second location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |