Package x
Class GPS
java.lang.Object
x.GPS
...
- Author:
- Sakdsitt Likhitmetagool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DoublecalLatLong(double lat1, double lon1, double lat2, double lon2, String unit) static doubledistance(double lng1, double lat1, double lng2, double lat2) Calculate the distance between any two points (latitude and longitude) on the earth Longitude of the first pointstatic void
-
Constructor Details
-
GPS
public GPS()
-
-
Method Details
-
calLatLong
-
distance
public static double distance(double lng1, double lat1, double lng2, double lat2) Calculate the distance between any two points (latitude and longitude) on the earth Longitude of the first point- Parameters:
lat1-lat2- Latitude of the second point- Returns:
- Return distance unit: meter
-
main
-