Class DefaultGPS
- java.lang.Object
-
- de.hybris.platform.storelocator.impl.DefaultGPS
-
- All Implemented Interfaces:
GPS,java.io.Serializable
public class DefaultGPS extends java.lang.Object implements GPS
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultGPS()DefaultGPS(double latitude, double longitude)DefaultGPS(int[] latitudeDMS, int[] longitudeDMS)
-
Method Summary
All Methods Instance Methods Concrete 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
-
create
public GPS create(java.lang.String latitude, java.lang.String longitude)
Description copied from interface:GPSCreates IGPS basing on the decimal longitude and latitude
-
create
public GPS create(double latitude, double longitude)
Description copied from interface:GPSCreates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitude
-
getDecimalLatitude
public double getDecimalLatitude()
Description copied from interface:GPSReturns the decimal representation of latitude- Specified by:
getDecimalLatitudein interfaceGPS- Returns:
- double
-
getDecimalLongitude
public double getDecimalLongitude()
Description copied from interface:GPSReturns the decimal representation of longitude- Specified by:
getDecimalLongitudein interfaceGPS- Returns:
- double
-
toDMSString
public java.lang.String toDMSString()
Description copied from interface:GPSReturns DMS representation of coordinates- Specified by:
toDMSStringin interfaceGPS- Returns:
- String
-
toString
public java.lang.String toString()
Description copied from interface:GPSReturns decimal representation of coordinates
-
toGeocodeServiceFormat
public java.lang.String toGeocodeServiceFormat()
Description copied from interface:GPSReturns lat/long representation of coordinates in the format acceptable by google Service- Specified by:
toGeocodeServiceFormatin interfaceGPS- Returns:
- String
-
-