|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 doublelongitude1 - - start point longitude as doublelatitude2 - - end point latitude as doublelongitude2 - - end point longitude as double
Exception| Method Detail |
|---|
public double getLatitude1()
doublepublic double getLongitude1()
doublepublic double getLatitude2()
doublepublic double getLongitude2()
doublepublic double getDistanceKm()
doublepublic double getDistanceMi()
double
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||