public class DefaultGPS extends java.lang.Object implements GPS
| Constructor and Description |
|---|
DefaultGPS() |
DefaultGPS(double latitude,
double longitude) |
DefaultGPS(int[] latitudeDMS,
int[] longitudeDMS) |
| Modifier and Type | Method and Description |
|---|---|
GPS |
create(double latitude,
double longitude)
Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitude
|
GPS |
create(java.lang.String latitude,
java.lang.String longitude)
Creates IGPS basing on the decimal longitude and latitude
|
double |
getDecimalLatitude()
Returns the decimal representation of latitude
|
double |
getDecimalLongitude()
Returns the decimal representation of longitude
|
java.lang.String |
toDMSString()
Returns DMS representation of coordinates
|
java.lang.String |
toGeocodeServiceFormat()
Returns lat/long representation of coordinates in the format acceptable by google Service
|
java.lang.String |
toString()
Returns decimal representation of coordinates
|
public DefaultGPS()
public DefaultGPS(double latitude,
double longitude)
longitude - latitude - public DefaultGPS(int[] latitudeDMS,
int[] longitudeDMS)
longitudeDMS - latitudeDMS - public GPS create(java.lang.String latitude, java.lang.String longitude)
GPSpublic GPS create(double latitude, double longitude)
GPSpublic double getDecimalLatitude()
GPSgetDecimalLatitude in interface GPSpublic double getDecimalLongitude()
GPSgetDecimalLongitude in interface GPSpublic java.lang.String toDMSString()
GPStoDMSString in interface GPSpublic java.lang.String toString()
GPSpublic java.lang.String toGeocodeServiceFormat()
GPStoGeocodeServiceFormat in interface GPSCopyright © 2018 SAP SE. All Rights Reserved.