Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
.gif)
10/16/2008
This class contains information about a World Geodetic System (WGS-84) location on earth.
Syntax
class LocationMsg : public Msg
Methods
| Method | Description |
|---|---|
Initializes the data fields of this class. |
|
Returns the MSN Direct service type for this message. |
|
Returns a pointer to the first byte of the message after the beginning-of-frame. |
|
Returns a pointer to the first byte of this message, including framing. |
|
Returns the size of this location message, subtracting framing. |
|
Returns the size of this location message, including the bytes used for framing. |
|
Returns the transaction ID of this location message. |
|
Initializes the data fields of this class. |
|
Returns true if this message is a response message. |
|
Returns the size of this location message, including framing. |
|
Sets the MSN Direct service type for this location message. |
|
Computes and sets the Cyclic Redundancy Check (CRC) value for the current message. |
|
Sets the error code for this location message. |
|
Sets the compass heading, in degrees. |
|
Sets the World Geodetic System (WGS-84) location for this location message. |
|
Sets the last bit of the transaction ID to indicate whether this location message is a response message. |
|
Sets the speed at which the host device is traveling, in miles per hour (MPH). |
|
Sets the time stamp for this location message. |
|
Sets the transaction ID for this location message. |
|
Sets a void location, time, speed, and heading. |
|
Sets an empty compass heading for this location message. |
|
Sets a void location for this location message. |
|
Sets an empty speed value for this location message. |
|
Sets an empty time stamp for this location message. |
Remarks
This class inherits from the Msg Class.
The MSN Direct receiver sends this message in order to determine the World Geodetic System (WGS-84) location of the host device and the current local time of the host device. With specific location information, the receiver can send the host device location-based up-to-date data, such as traffic alerts.
If the MSN Direct service type of the incoming message is LOCATION_DATA, you can typecast it to a LocationMsg object and supply the object with the location data.
You must populate the fields of this class with location data derived by using GPS technology.
This message can only be used in transactions that are initiated by the MSN Direct receiver.
Requirements
| Header | DBRLib.h |
| Library | DBRLib.lib |
| Windows Embedded CE | Windows CE 5.0, Windows Embedded NavReady 2009 |