Class DefaultGPS
java.lang.Object
de.hybris.platform.storelocator.impl.DefaultGPS
- All Implemented Interfaces:
GPS,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGPS(double latitude, double longitude) DefaultGPS(int[] latitudeDMS, int[] longitudeDMS) -
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
-
Constructor Details
-
DefaultGPS
public DefaultGPS() -
DefaultGPS
public DefaultGPS(double latitude, double longitude) - Parameters:
longitude-latitude-
-
DefaultGPS
public DefaultGPS(int[] latitudeDMS, int[] longitudeDMS) - Parameters:
longitudeDMS-latitudeDMS-
-
-
Method Details
-
create
Description copied from interface:GPSCreates IGPS basing on the decimal longitude and latitude -
create
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
Description copied from interface:GPSReturns DMS representation of coordinates- Specified by:
toDMSStringin interfaceGPS- Returns:
- String
-
toString
Description copied from interface:GPSReturns decimal representation of coordinates -
toGeocodeServiceFormat
Description copied from interface:GPSReturns lat/long representation of coordinates in the format acceptable by google Service- Specified by:
toGeocodeServiceFormatin interfaceGPS- Returns:
- String
-