About GPS ToolKit
Introduction
Purchasing GPS ToolKit
Redistributing GPS ToolKit
License Agreement
Support
Getting Started
How to Use GPS ToolKit
Adding GPS ToolKit to a Visual Basic Project
Adding GPS ToolKit to a Visual C++ Project
Adding GPS ToolKit to an Excel Worksheet
Setting up the GPS
How to Use Events
Handling Events in Visual Basic
Handling Events in Visual C++
Handling Events in Microsoft Excel
GPS ToolKit Sample Projects
Handling GPS ToolKit Errors
Reference
Properties
Altitude
AltitudeUnits
ArrivedAtDest
AutomaticOperation
BaudRate
CrossTrackError
DegLabel
DestClosingVelocity
DestWptID
DestWptLatitude
DestWptLongitude
DistUnits
DGPSRefStationID
FixDateTime
FixGood
FixQuality
FixSatellitePRNs
GeoidHeightAboveWGS84Ellipsoid
HDOP
Latitude
LatLonFormat
Longitude
MagVariation
MinLabel
ModeIndicator
NumSatellitesInFix
NumSatellitesInView
OperationMode
OrigToDestMagBearing
OrigToDestTrueBearing
OriginWptID
PDOP
PortHandle
PortName
RangeToDest
RouteContainsAllWpts
RouteName
SatelliteInViewPRNs
SecLabel
Speed
SpeedUnits
TimeSinceLastDGPSUpdate
TrueBearingToDest
TrueCourse
VDOP
WptsInRoute
Methods
Close
GetSatelliteInfo
GetWptLocation
Open
OpenFile
Events
FixUpdate
FileComplete
NavUpdate
RawDataReceived
SatelliteUpdate

LatLonFormat Property

Sets/gets the format in which latitude and longitude data is to be returned.

Syntax

Visual Basic

object.LatLonFormat [ = value ]

Visual C++

object.GetLatLonFormat()

object.SetLatLonFormat(value)

Part Description
object An object expression that evaluates to a GPS ToolKit object.
value A short integer indicating the format in which latitude and longitude data is to be returned.

Example

Visual Basic

'Set lat/lon format
myGPSToolKit.LatLonFormat = 2	' deg min sec

'Get lat/lon format
Dim latLonFormat As Integer
altUnits = myGPSToolKit.LatLonFormat

Visual C++

// Set lat/lon format
_variant_t vtLatLonFormat((short)2);   // deg min sec
m_myGPSToolKit.SetLatLonFormat(vtLatLonFormat);

// Get lat/lon format
vtLatLonFormat = m_myGPSToolKit.GetLatLonFormat();
short latLonFormat = (short)vtLatLonFormat;

Remarks

This property affects the format of the Latitude and Longitude properties, as well as the latitude and longitude data supplied by the FixUpdate event.

Valid LatLonFormat values are as follows:
Setting Description
0 dd.ddddd (Default)
1 dd mm.mmmm
2 dd mm ss.sss

Default

0 (dd.ddddd)

Returns

A VARIANT (type VT_I2/short) containing the format in which latitude and longitude data is to be returned.

Errors

None

See Also

Latitude property, Longitude property, DegLabel property, MinLabel property, SecLabel property, FixUpdate event