org.netxms.client
Class GeoLocation
java.lang.Object
org.netxms.client.GeoLocation
public class GeoLocation
- extends java.lang.Object
- Author:
- Victor Kirhenshtein
Constructor Summary |
GeoLocation()
Create geolocation object of type UNSET |
GeoLocation(double lat,
double lon)
Create geolocation object of type MANUAL |
GeoLocation(NXCPMessage msg)
Create geolocation object from NXCP message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNSET
public static final int UNSET
- See Also:
- Constant Field Values
MANUAL
public static final int MANUAL
- See Also:
- Constant Field Values
GPS
public static final int GPS
- See Also:
- Constant Field Values
GeoLocation
public GeoLocation(NXCPMessage msg)
- Create geolocation object from NXCP message
- Parameters:
msg
- NXCP message
GeoLocation
public GeoLocation()
- Create geolocation object of type UNSET
GeoLocation
public GeoLocation(double lat,
double lon)
- Create geolocation object of type MANUAL
- Parameters:
lat
- Latitudelon
- Longitude
getType
public int getType()
- Returns:
- the type
getLatitude
public double getLatitude()
- Returns:
- the latitude
getLongitude
public double getLongitude()
- Returns:
- the longitude
Copyright © 2011. All Rights Reserved.