java.lang.Object
org.htmlunit.WebClientOptions.Geolocation
- All Implemented Interfaces:
Serializable
- Enclosing class:
- WebClientOptions
Support class for Geolocation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeolocation(double latitude, double longitude, double accuracy, Double altitude, Double altitudeAccuracy, Double heading, Double speed) Ctor. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the accuracy.Returns the longitude.Returns the altitudeAccuracy.Returns the heading.doubleReturns the latitude.doubleReturns the longitude.getSpeed()Returns the speed.
-
Constructor Details
-
Geolocation
public Geolocation(double latitude, double longitude, double accuracy, Double altitude, Double altitudeAccuracy, Double heading, Double speed) Ctor.- Parameters:
latitude- the latitude coordinate in decimal degreeslongitude- the longitude coordinate in decimal degreesaccuracy- the accuracy of the position in metersaltitude- the altitude in meters above sea level, or null if unavailablealtitudeAccuracy- the accuracy of the altitude in meters, or null if unavailableheading- the direction of travel in degrees (0-359), or null if unavailablespeed- the current speed in meters per second, or null if unavailable
-
-
Method Details
-
getAccuracy
public double getAccuracy()Returns the accuracy.- Returns:
- the accuracy
-
getLatitude
public double getLatitude()Returns the latitude.- Returns:
- the latitude
-
getLongitude
public double getLongitude()Returns the longitude.- Returns:
- the longitude
-
getAltitude
Returns the longitude.- Returns:
- the longitude
-
getAltitudeAccuracy
Returns the altitudeAccuracy.- Returns:
- the altitudeAccuracy
-
getHeading
Returns the heading.- Returns:
- the heading
-
getSpeed
Returns the speed.- Returns:
- the speed
-