java.lang.Object
org.htmlunit.WebClientOptions.Geolocation
- All Implemented Interfaces:
Serializable
- Enclosing class:
- WebClientOptions
Support class for Geolocation.
- See Also:
-
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
-
getLatitude
public double getLatitude()- Returns:
- the latitude
-
getLongitude
public double getLongitude()- Returns:
- the longitude
-
getAltitude
- Returns:
- the longitude
-
getAltitudeAccuracy
- Returns:
- the altitudeAccuracy
-
getHeading
- Returns:
- the heading
-
getSpeed
- Returns:
- the speed
-