com.vaadin.addon.touchkit.gwt.client.vcom
Class Position
java.lang.Object
com.vaadin.addon.touchkit.gwt.client.vcom.Position
- All Implemented Interfaces:
- Serializable
public class Position
- extends Object
- implements Serializable
Contains details received from browsers HTML5 geolocation
request. Note that on some devices selected fields may be null.
The geographic coordinate reference system used by the attributes is the
World Geodetic System (2d) aka WGS84 aka EPSG:4326.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Position
public Position()
getLatitude
public double getLatitude()
- Returns:
- the latitude of the position
setLatitude
public void setLatitude(double latitude)
- See Also:
getLatitude()
getLongitude
public double getLongitude()
- Returns:
- the longitude of the position
setLongitude
public void setLongitude(double longitude)
- See Also:
getLongitude()
getAccuracy
public double getAccuracy()
- Returns:
- the accuracy of the position information in meters
setAccuracy
public void setAccuracy(double accuracy)
- See Also:
setAccuracy(double)
getAltitude
public Double getAltitude()
- Returns:
- the height of the position, specified in meters above the
ellipsoid or null if device cannot provide the information.
setAltitude
public void setAltitude(Double altitude)
- See Also:
getAltitude()
getAltitudeAccuracy
public Double getAltitudeAccuracy()
- Returns:
- the accuracy of the altitude informations in meters
setAltitudeAccuracy
public void setAltitudeAccuracy(Double altitudeAccuracy)
- See Also:
getAltitudeAccuracy()
getHeading
public Double getHeading()
- Returns:
- denotes the direction of travel of the hosting device and is
specified in degrees, where 0° ≤ heading < 360°, counting
clockwise relative to the true north. Null if device don't
support it or it is not moving.
setHeading
public void setHeading(Double heading)
- See Also:
getHeading()
getSpeed
public Double getSpeed()
- Returns:
- the magnitude of the horizontal component of the hosting device's
current velocity and is specified in meters per second. If the
implementation cannot provide speed information, the value of
this attribute must be null. Otherwise, the value of the speed
attribute must be a non-negative real number.
setSpeed
public void setSpeed(Double speed)
- See Also:
getSpeed()
Copyright © 2014 Vaadin Ltd. All rights reserved.