Returns the intent that is used to show the global locations settings. Example: IfGPS1.GPSEnabled = FalseThenStartActivity(GPS1.LocationSettingsIntent)
Start (MinimumTimeAsLong, MinimumDistanceAsFloat)
Starts listening for events. MinimumTime - The shortest period (measured in milliseconds) between events. Pass 0 for highest frequency. MinimumDistance - The shortest change in distance (measured in meters) for which to raise events. Pass 0 for highest frequency.
Stop
Stops listening to the GPS. You will usually want to call Stop inside Sub Activity_Pause.
A Location object holds various information about a specific GPS fix. In most cases you will work with locations that are passed to the GPS LocationChanged event. The location object can also be used to calculate distance and bearing to other locations.
Converts the given coordinate to a string formatted with the following format: [+-]DDD:MM.MMMMM (Minute = 1 / 60 of a degree)
ConvertToSeconds (CoordinateAsDouble) AsString
Converts the given coordinate to a string formatted with the following format: [+-]DDD:MM:SS.SSSSS (Minute = 1 / 60 of a degree, Second = 1 / 3600 of a degree)
Returns the distance to the given location, measured in meters.
Initialize
Initializes an empty location object.
Initialize2 (LatitudeAsString, LongitudeAsString)
Initializes the location object with the given Latitude and Longitude. Values can be formatted in any of the three formats: Degrees: [+-]DDD.DDDDD Minutes: [+-]DDD:MM.MMMMM (Minute = 1 / 60 of a degree) Seconds: [+-]DDD:MM:SS.SSSSS (Second = 1 / 3600 of a degree) Example: DimL1AsLocation L1.Initialize2("45:30:30", "45:20:15")
IsInitializedAsBoolean
LatitudeAsDouble
Gets or sets the fix latitude (degrees from -90 (South) to 90 (North)).
LongitudeAsDouble
Gets or sets the fix longitude (degrees from -180 to 180, positive values represent the eastern hemisphere).