LargePictureMaskColor  LeftMargin

Chapter 3: Property Descriptions and Usage

Latitude

Applies to

GPSFix objects

Description

The Latitude property holds information about the latitude of a position fix.

Usage


In scripts

The Latitude property takes a value of the GPSCoordinate structure, which holds the latitude of a position fix in degrees and minutes in the Northern or Southern Hemisphere. The Minute property is a real value. The following example takes the Minute property, separates it into whole minutes and a partial minute, and converts the partial minute into a number of seconds:

SerialGps myGPS
GPSFix myFix
GPSCoordinate myCoord
Integer fixMinutes, rc
Real fixSeconds

MyGPS = CREATE SerialGPS
rc = myGPS.Open()
...
rc = MyGPS.GetFix(myFix)
myCoord = myFix.Latitude
fixMinutes = Integer(myCoord.Minute)
fixSeconds = (myCoord.Minute - fixMinutes) * 60
mle_1.text = "Latitude: " &
   + String(myCoord.degree) + " degrees "  &
   + String(fixMinutes) + " minutes "  &
   + String(fixSeconds) + " seconds "  &
   + String(myCoord.Hemisphere)





Copyright © 2004. Sybase Inc. All rights reserved. LeftMargin

View this book as PDF