MCPcopy Create free account

hub / github.com/R44VC0RP/teslanav.com / functions

Functions200 in github.com/R44VC0RP/teslanav.com

↓ 8 callersFunctiongetButtonStyles
(darkMode: boolean)
app/page.tsx:21
↓ 7 callersFunctiontoRad
(deg: number)
hooks/useGeolocation.ts:26
↓ 6 callersFunctionclearLongPress
()
components/Map.tsx:791
↓ 6 callersFunctiongetPostHogClient
()
lib/posthog-server.ts:5
↓ 5 callersFunctiongetMonthKey
()
lib/redis.ts:61
↓ 4 callersFunctioncalculateBearing
* Calculate bearing between two points in degrees (0-360, where 0 is north)
lib/gpx.ts:296
↓ 4 callersFunctionfetchUsage
(adminSecret: string)
app/admin/page.tsx:64
↓ 4 callersFunctiongetContainerStyles
(darkMode: boolean)
app/page.tsx:26
↓ 4 callersFunctionhidePlaceLabels
(mapInstance: mapboxgl.Map)
components/Map.tsx:197
↓ 4 callersFunctionlerp
(start: number, end: number, t: number)
components/Map.tsx:141
↓ 4 callersFunctionroundTo
(n: string)
app/api/waze/route.ts:8
↓ 4 callersFunctionroundTo
(n: string)
app/api/speedcameras/route.ts:12
↓ 3 callersFunctionaddTrafficLayer
()
components/Map.tsx:979
↓ 3 callersFunctiongetContentType
(url: string)
app/api/tiles/route.ts:37
↓ 3 callersFunctiongetOrCreateSessionToken
()
lib/gpx.ts:173
↓ 3 callersFunctiongetSavedSessions
* Get saved sessions from localStorage
hooks/useGPXRecorder.ts:282
↓ 3 callersFunctionhasAlertBeenSent
(apiName: ApiName, threshold: number)
lib/redis.ts:138
↓ 3 callersFunctionnormalizeAngle
(angle: number)
components/Map.tsx:146
↓ 3 callersFunctiontoRad
(deg: number)
lib/gpx.ts:297
↓ 3 callersFunctiontoRad
(deg: number)
app/page.tsx:571
↓ 3 callersFunctiontrackApiUsage
(apiName: ApiName, count: number = 1)
lib/redis.ts:77
↓ 2 callersFunctionadd3DTerrainLayer
()
components/Map.tsx:1204
↓ 2 callersFunctionaddRoutes
()
components/Map.tsx:2031
↓ 2 callersFunctioncalculateDuration
(points: TrackPoint[])
lib/gpx.ts:144
↓ 2 callersFunctionescapeHtml
(text: string)
app/api/feedback/route.ts:159
↓ 2 callersFunctionescapeXml
* Escape special characters for XML
lib/gpx.ts:203
↓ 2 callersFunctionformatDuration
(ms: number)
lib/gpx.ts:215
↓ 2 callersFunctiongenerateGPX
(points: TrackPoint[], name: string)
lib/gpx.ts:16
↓ 2 callersFunctiongenerateUUID
()
lib/gpx.ts:192
↓ 2 callersFunctiongetAngleDiff
(from: number, to: number)
components/Map.tsx:151
↓ 2 callersFunctiongetApiUsage
(apiName: ApiName)
lib/redis.ts:100
↓ 2 callersFunctiongetBoundsSize
(bounds: typeof BASE_BOUNDS)
scripts/test-waze-bounds.ts:21
↓ 2 callersFunctiongetNightOverlayOpacity
()
components/Map.tsx:158
↓ 2 callersFunctionhandleSelect
(result: SearchResult)
components/NavigateSearch.tsx:105
↓ 2 callersFunctionmarkAlertSent
(apiName: ApiName, threshold: number)
lib/redis.ts:148
↓ 2 callersFunctionremoveAllRouteLayers
()
components/Map.tsx:2000
↓ 2 callersFunctionsendAlertEmail
( apiName: string, usage: number, limit: number, threshold: number )
app/api/admin/usage/route.ts:267
↓ 2 callersFunctiontoMeters
(lat: number, lng: number, refLat: number, refLng: number)
app/page.tsx:203
↓ 2 callersFunctionuseGeolocation
(enableHighAccuracy = true)
hooks/useGeolocation.ts:77
↓ 1 callersFunctionadd3DTerrain
()
components/Map.tsx:1119
↓ 1 callersFunctionaddInitial3DTerrain
()
components/Map.tsx:679
↓ 1 callersFunctionaddInitialTraffic
()
components/Map.tsx:633
↓ 1 callersFunctionboundsOverlap
(a: MapBounds, b: MapBounds)
hooks/useWazeAlerts.ts:53
↓ 1 callersFunctionbuildOverpassQuery
(south: number, west: number, north: number, east: number)
app/api/speedcameras/route.ts:39
↓ 1 callersFunctionbuildRouteSummary
(steps: Array<{ name: string; distance: number }>, index: number)
app/api/directions/route.ts:150
↓ 1 callersFunctioncalculateBearing
( lat1: number, lon1: number, lat2: number, lon2: number )
hooks/useGeolocation.ts:20
↓ 1 callersFunctioncalculateBounds
(points: TrackPoint[])
lib/gpx.ts:121
↓ 1 callersFunctioncalculateBoundsOverlap
(a: MapBounds, b: MapBounds)
hooks/useSpeedCameras.ts:17
↓ 1 callersFunctioncalculateDistance
( lat1: number, lon1: number, lat2: number, lon2: number )
hooks/useGeolocation.ts:43
↓ 1 callersFunctioncheckRateLimit
(ip: string)
app/api/feedback/route.ts:11
↓ 1 callersFunctioncheckRateLimit
()
app/api/waze/route.ts:13
↓ 1 callersFunctioncheckRateLimit
()
app/api/speedcameras/route.ts:17
↓ 1 callersFunctionclusterAlerts
( alerts: WazeAlert[], clusterRadius: number = 0.002 // ~200m at equator )
components/Map.tsx:96
↓ 1 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 1 callersFunctioncreateCirclePolygon
(lng: number, lat: number, radiusMeters: number, points = 64)
components/Map.tsx:1368
↓ 1 callersFunctiondownloadFile
(url, filename)
scripts/download-waze-icons.js:23
↓ 1 callersFunctiondownloadGPX
(gpxString: string, filename: string)
lib/gpx.ts:230
↓ 1 callersFunctionexpandBounds
(bounds: typeof BASE_BOUNDS, multiplier: number)
scripts/test-waze-bounds.ts:34
↓ 1 callersFunctionexpandBounds
(bounds: MapBounds, multiplier: number)
hooks/useWazeAlerts.ts:24
↓ 1 callersFunctionfetchPlaceName
()
hooks/useReverseGeocode.ts:64
↓ 1 callersFunctionfetchWazeAlerts
(bounds: typeof BASE_BOUNDS)
scripts/test-waze-bounds.ts:49
↓ 1 callersFunctionformatBytes
(bytes)
public/sw.js:140
↓ 1 callersFunctionformatDistance
(meters: number)
components/RouteSelector.tsx:24
↓ 1 callersFunctionformatDistance
(meters: number)
app/page.tsx:43
↓ 1 callersFunctionformatDuration
(seconds: number)
components/RouteSelector.tsx:13
↓ 1 callersFunctionformatDuration
(seconds: number)
app/page.tsx:32
↓ 1 callersFunctiongenerateRecordingName
()
lib/gpx.ts:156
↓ 1 callersFunctiongetCacheKey
(lng: number, lat: number)
app/api/geocode/reverse/route.ts:10
↓ 1 callersFunctiongetCacheKey
(left: string, right: string, bottom: string, top: string)
app/api/waze/route.ts:6
↓ 1 callersFunctiongetCacheKey
(url: string)
app/api/tiles/route.ts:28
↓ 1 callersFunctiongetCacheKey
(left: string, right: string, bottom: string, top: string)
app/api/speedcameras/route.ts:10
↓ 1 callersFunctiongetClusterId
(cluster: AlertCluster)
components/Map.tsx:1619
↓ 1 callersFunctiongetDailyUsage
(apiName: ApiName, days: number = 7)
lib/redis.ts:110
↓ 1 callersFunctiongetDayKey
()
lib/redis.ts:69
↓ 1 callersFunctiongetDistanceKm
* Calculate distance between two points using Haversine formula * Returns distance in kilometers
app/api/geocode/route.ts:30
↓ 1 callersFunctiongetProgressColor
(percent: number)
app/admin/page.tsx:188
↓ 1 callersFunctiongetRouteLabel
(index: number, routes: RouteData[])
components/RouteSelector.tsx:33
↓ 1 callersFunctiongetStatusColor
(status: UsageStats["status"])
app/admin/page.tsx:162
↓ 1 callersFunctiongetStatusLabel
(status: UsageStats["status"])
app/admin/page.tsx:175
↓ 1 callersFunctionhandleInputChange
(value: string)
components/NavigateSearch.tsx:92
↓ 1 callersFunctioninterpolateAngle
* Interpolate between two angles, handling wraparound
lib/gpx.ts:280
↓ 1 callersFunctioninterpolatePosition
( pointA: TrackPoint, pointB: TrackPoint, targetTime: number )
lib/gpx.ts:245
↓ 1 callersFunctionisAllowedUrl
(url: string)
app/api/tiles/route.ts:23
↓ 1 callersFunctionisCacheValid
(response)
public/sw.js:45
↓ 1 callersFunctionisViewportContained
(viewport: MapBounds, fetchedBounds: MapBounds)
hooks/useWazeAlerts.ts:43
↓ 1 callersFunctionlerpAngle
(from: number, to: number, t: number)
hooks/useGeolocation.ts:72
↓ 1 callersFunctionmain
()
scripts/download-waze-icons.js:54
↓ 1 callersFunctionnormalizeAngleDiff
(angle: number)
hooks/useGeolocation.ts:65
↓ 1 callersFunctionparseGPX
(gpxString: string)
lib/gpx.ts:64
↓ 1 callersFunctionparseShutdownFlag
(value: string | undefined)
lib/shutdown.ts:3
↓ 1 callersFunctionremove3DTerrain
()
components/Map.tsx:1172
↓ 1 callersFunctionremoveExisting
()
components/Map.tsx:1395
↓ 1 callersFunctionremoveTrafficLayer
()
components/Map.tsx:1089
↓ 1 callersFunctionrunTests
()
scripts/test-waze-bounds.ts:113
↓ 1 callersFunctionshouldCache
(url)
public/sw.js:40
↓ 1 callersFunctiontoDeg
(rad: number)
lib/gpx.ts:298
↓ 1 callersFunctiontoDeg
(rad: number)
app/page.tsx:572
↓ 1 callersFunctiontoDeg
(rad: number)
hooks/useGeolocation.ts:27
↓ 1 callersFunctionuseGPXPlayer
(options: UseGPXPlayerOptions = {})
hooks/useGPXPlayer.ts:37
↓ 1 callersFunctionuseGPXRecorder
(options: UseGPXRecorderOptions = {})
hooks/useGPXRecorder.ts:43
next →1–100 of 200, ranked by callers