Package de.hybris.platform.storelocator
Interface GPS
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultGPS
Represents GPS location of a point
-
Method Summary
Modifier and TypeMethodDescriptioncreate(double latitude, double longitude) Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitudeCreates IGPS basing on the decimal longitude and latitudedoubleReturns the decimal representation of latitudedoubleReturns the decimal representation of longitudeReturns DMS representation of coordinatesReturns lat/long representation of coordinates in the format acceptable by google ServicetoString()Returns decimal representation of coordinates
-
Method Details
-
getDecimalLongitude
double getDecimalLongitude()Returns the decimal representation of longitude- Returns:
- double
-
getDecimalLatitude
double getDecimalLatitude()Returns the decimal representation of latitude- Returns:
- double
-
create
Creates IGPS basing on the decimal longitude and latitude- Parameters:
longitude-latitude-- Returns:
- IGPS
- Throws:
GeoLocatorException
-
create
Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitude- Parameters:
longitude-latitude-- Returns:
- IGPS
- Throws:
GeoLocatorException
-
toString
String toString()Returns decimal representation of coordinates -
toDMSString
String toDMSString()Returns DMS representation of coordinates- Returns:
- String
-
toGeocodeServiceFormat
String toGeocodeServiceFormat()Returns lat/long representation of coordinates in the format acceptable by google Service- Returns:
- String
-