|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.protocol.pcn.Gps2Distance
public class Gps2Distance
Constructor Summary | |
---|---|
Gps2Distance(double latitude1,
double longitude1,
double latitude2,
double longitude2)
Gps2Distance constructor. |
Method Summary | |
---|---|
double |
getDistanceKm()
Reports distance between two points in kilometers. |
double |
getDistanceMi()
Reports distance between two points in miles. |
double |
getLatitude1()
Reports start point latitude. |
double |
getLatitude2()
Reports end point latitude. |
double |
getLongitude1()
Reports start point longitude. |
double |
getLongitude2()
Reports end point longitude. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gps2Distance(double latitude1, double longitude1, double latitude2, double longitude2) throws Exception
latitude1
- - start point latitude as double
longitude1
- - start point longitude as double
latitude2
- - end point latitude as double
longitude2
- - end point longitude as double
Exception
Method Detail |
---|
public double getLatitude1()
double
public double getLongitude1()
double
public double getLatitude2()
double
public double getLongitude2()
double
public double getDistanceKm()
double
public double getDistanceMi()
double
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |