com.ls.widgets.map.utils
Class MapCalibrationData
java.lang.Object
com.ls.widgets.map.utils.MapCalibrationData
public class MapCalibrationData
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapCalibrationData
public MapCalibrationData( topLeft,
bottomRight)
widthInPixels
public int widthInPixels()
- Returns:
- returns width of the calibration rectangle in pixels
heightInPixels
public int heightInPixels()
- Returns:
- returns height of the calibration rectangle in pixels
widthInDegrees
public double widthInDegrees()
- Returns:
- Returns width of the calibration rectangle in degrees;
heightInDegrees
public double heightInDegrees()
- Returns:
- Returns height of the calibration rectangle in degrees;
getWidthInMeters
public float getWidthInMeters()
- Returns:
- Returns width of the calibration rectangle in meters;
getHeightInMeters
public float getHeightInMeters()
- Returns:
- Returns height of the calibration rectangle in meters;
translate
public Point translate(Location location,
Point position)
- Converts location to position on the map.
- Parameters:
location
- instance of android.location.Location object.position
- - out parameter. Can be null.
- Returns:
- returns the same object that was passed as position, or if it is null - returns new Point object.
translate
public void translate(Point point,
Location location)
- Converts position on the map to location coordinates.
- Parameters:
point
- - position on the map in pixels. Instance of android.graphics.Pointlocation
- - out parameter. Will contain latitude and longitude of point on the map.
translate
public void translate(int x,
int y,
Location location)
- Converts position on the map to location coordinates.
- Parameters:
x
- - x coordinate in map coordinate system.y
- - y coordinate in map coordinate system.location
- - out parameter. Will contain latitude and longitude of point on the map.