forked from Blendman974/faceclaw
Port navigate and weather
This commit is contained in:
1 parent
2b3e068a23
commit
9e18745e53
33 files changed
+630
-60
No files matched your search
@@ -9,22 +9,8 @@ import { Utils } from "@nativescript/core";
|
||||
declare const com: any;
|
||||
declare const global: any;
|
||||
|
||||
export type TrackedLocation = {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
/** Meters, or null when the fix doesn't report accuracy. */
|
||||
accuracyMeters: number | null;
|
||||
/** Degrees clockwise from true north, or null (common when stationary). */
|
||||
bearingDeg: number | null;
|
||||
/** Meters per second, or null. */
|
||||
speedMps: number | null;
|
||||
timestampMs: number;
|
||||
};
|
||||
|
||||
export type LocationTrackerCallbacks = {
|
||||
onLocation: (location: TrackedLocation) => void;
|
||||
onError: (message: string) => void;
|
||||
};
|
||||
import { type LocationTrackerCallbacks } from "./location-types";
|
||||
export { type LocationTrackerCallbacks, type TrackedLocation } from "./location-types";
|
||||
|
||||
export class LocationTracker {
|
||||
private tracker: any = null;
|
||||
|
||||
Reference in new issue
Block a user