Public Member Functions | |
__construct ($args=array()) | |
getLatitude () | |
getLongitude () | |
getAltitude () | |
getAngle () | |
getSatellites () | |
getSpeed ($unit= 'kmph') | |
setLatitude ($val) | |
setLongitude ($val) | |
setAltitude ($val) | |
setAngle ($val) | |
setSatellites ($val) | |
setSpeed ($val) | |
isValid () |
GPS Element object for Teltonika's FMXXXX GPS device.
__construct | ( | $ | args = array() | ) |
Constructor
array | $args | Constructor arguments |
getAltitude | ( | ) |
Get altitude value converted in integer
getAngle | ( | ) |
Get angle value converted in integer
getLatitude | ( | ) |
getLongitude | ( | ) |
getSatellites | ( | ) |
Get satellites number converted in integer
getSpeed | ( | $ | unit = 'kmph' | ) |
Get speed value converted in integer (kmph or mph)
string | $unit | The unit in which the speed have to be converted The unit must be: + kpmh -> Km/h + mph -> Milles/h |
isValid | ( | ) |
Check if the GPSElement is valid or not. Note: The GPSElement is valid only if the speed is different of 0.
setAltitude | ( | $ | val | ) |
Setter for altitude attribute. Note: The value must be in Hexadecimal.
string | $val | The altitude value in Hex base (16) |
setAngle | ( | $ | val | ) |
Setter for angle attribute. Note: The value must be in Hexadecimal.
string | $val | The angle value in Hex base (16) |
setLatitude | ( | $ | val | ) |
Setter for latitude attribute. Note: The value must be in Hexadecimal.
string | $val | The latitude value in Hex base (16) |
setLongitude | ( | $ | val | ) |
Setter for longitude attribute. Note: The value must be in Hexadecimal.
string | $val | The longitude value in Hex base (16) |
setSatellites | ( | $ | val | ) |
Setter for satellites attribute. Note: The value must be in Hexadecimal.
string | $val | The satellites value in Hex base (16) |
setSpeed | ( | $ | val | ) |
Setter for speed attribute. Note: The value must be in Hexadecimal.
string | $val | The speed value in Hex base (16) |