public class DefaultGPS extends Object implements GPS, Serializable
| 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(String latitude,
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
|
String |
toDMSString()
Returns DMS representation of coordinates
|
String |
toGeocodeServiceFormat()
Returns lat/long representation of coordinates in the format acceptable by google Service
|
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(String latitude, String longitude) throws GeoLocatorException
GPScreate in interface GPSGeoLocatorExceptionpublic GPS create(double latitude, double longitude) throws GeoLocatorException
GPScreate in interface GPSGeoLocatorExceptionpublic double getDecimalLatitude()
GPSgetDecimalLatitude in interface GPSpublic double getDecimalLongitude()
GPSgetDecimalLongitude in interface GPSpublic String toDMSString()
GPStoDMSString in interface GPSpublic String toString()
GPSpublic String toGeocodeServiceFormat()
GPStoGeocodeServiceFormat in interface GPSCopyright © 2017 SAP SE. All Rights Reserved.