expo-realtime-maps-navigation
Version:
JavaScript-pure React Native navigation package with Google Places + HERE Routing APIs, dual maps support, and complete customization - No native modules required!
48 lines (47 loc) • 1.33 kB
TypeScript
import type { NavigationProgress, LatLng } from '../types';
export interface RouteProgressData extends NavigationProgress {
routePolyline?: LatLng[];
progressPercentage: number;
speedKmh: number;
isApproachingManeuver: boolean;
formattedETA: string;
formattedDistance: string;
formattedNextDistance: string;
}
export declare const useRouteProgress: () => RouteProgressData | null;
export declare const useRouteProgressMetrics: () => {
distanceRemaining: null;
timeRemaining: null;
speedKmh: null;
nextInstruction: null;
progressPercentage: null;
} | {
distanceRemaining: string;
timeRemaining: string;
speedKmh: number;
nextInstruction: string;
progressPercentage: number;
};
export declare const useNextManeuver: () => {
instruction: string;
distance: string;
distanceMeters: number;
type: import("../types").ManeuverType;
streetName: string | undefined;
nextStreetName: string | undefined;
position: LatLng;
isApproaching: boolean;
} | null;
export declare const useSpeedData: () => {
currentSpeed: null;
speedLimit: null;
isOverLimit: boolean;
speedKmh: null;
speedMph: null;
} | {
currentSpeed: number;
speedLimit: number | null;
isOverLimit: boolean;
speedKmh: number;
speedMph: number;
};