Package de.hybris.platform.storelocator
Interface GPS
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultGPS
public interface GPS extends java.io.SerializableRepresents GPS location of a point
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GPScreate(double latitude, double longitude)Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitudeGPScreate(java.lang.String latitude, java.lang.String longitude)Creates IGPS basing on the decimal longitude and latitudedoublegetDecimalLatitude()Returns the decimal representation of latitudedoublegetDecimalLongitude()Returns the decimal representation of longitudejava.lang.StringtoDMSString()Returns DMS representation of coordinatesjava.lang.StringtoGeocodeServiceFormat()Returns lat/long representation of coordinates in the format acceptable by google Servicejava.lang.StringtoString()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:
toStringin 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
-
-