Package de.hybris.platform.storelocator
Interface GPS
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultGPS
public interface GPS extends java.io.Serializable
Represents GPS location of a point
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GPS
create(double latitude, double longitude)
Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitudeGPS
create(java.lang.String latitude, java.lang.String longitude)
Creates IGPS basing on the decimal longitude and latitudedouble
getDecimalLatitude()
Returns the decimal representation of latitudedouble
getDecimalLongitude()
Returns the decimal representation of longitudejava.lang.String
toDMSString()
Returns DMS representation of coordinatesjava.lang.String
toGeocodeServiceFormat()
Returns lat/long representation of coordinates in the format acceptable by google Servicejava.lang.String
toString()
Returns decimal representation of coordinates
-
-
-
Method Detail
-
getDecimalLongitude
double getDecimalLongitude()
Returns the decimal representation of longitude- Returns:
- double
-
getDecimalLatitude
double getDecimalLatitude()
Returns the decimal representation of latitude- Returns:
- double
-
create
GPS create(java.lang.String latitude, java.lang.String longitude)
Creates IGPS basing on the decimal longitude and latitude- Parameters:
longitude
-latitude
-- Returns:
- IGPS
- Throws:
GeoLocatorException
-
create
GPS create(double latitude, double longitude)
Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitude- Parameters:
longitude
-latitude
-- Returns:
- IGPS
- Throws:
GeoLocatorException
-
toString
java.lang.String toString()
Returns decimal representation of coordinates- Overrides:
toString
in classjava.lang.Object
- Returns:
- String
-
toDMSString
java.lang.String toDMSString()
Returns DMS representation of coordinates- Returns:
- String
-
toGeocodeServiceFormat
java.lang.String toGeocodeServiceFormat()
Returns lat/long representation of coordinates in the format acceptable by google Service- Returns:
- String
-
-