Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/R44VC0RP/teslanav.com
/ functions
Functions
200 in github.com/R44VC0RP/teslanav.com
⨍
Functions
200
◇
Types & classes
41
↓ 8 callers
Function
getButtonStyles
(darkMode: boolean)
app/page.tsx:21
↓ 7 callers
Function
toRad
(deg: number)
hooks/useGeolocation.ts:26
↓ 6 callers
Function
clearLongPress
()
components/Map.tsx:791
↓ 6 callers
Function
getPostHogClient
()
lib/posthog-server.ts:5
↓ 5 callers
Function
getMonthKey
()
lib/redis.ts:61
↓ 4 callers
Function
calculateBearing
* Calculate bearing between two points in degrees (0-360, where 0 is north)
lib/gpx.ts:296
↓ 4 callers
Function
fetchUsage
(adminSecret: string)
app/admin/page.tsx:64
↓ 4 callers
Function
getContainerStyles
(darkMode: boolean)
app/page.tsx:26
↓ 4 callers
Function
hidePlaceLabels
(mapInstance: mapboxgl.Map)
components/Map.tsx:197
↓ 4 callers
Function
lerp
(start: number, end: number, t: number)
components/Map.tsx:141
↓ 4 callers
Function
roundTo
(n: string)
app/api/waze/route.ts:8
↓ 4 callers
Function
roundTo
(n: string)
app/api/speedcameras/route.ts:12
↓ 3 callers
Function
addTrafficLayer
()
components/Map.tsx:979
↓ 3 callers
Function
getContentType
(url: string)
app/api/tiles/route.ts:37
↓ 3 callers
Function
getOrCreateSessionToken
()
lib/gpx.ts:173
↓ 3 callers
Function
getSavedSessions
* Get saved sessions from localStorage
hooks/useGPXRecorder.ts:282
↓ 3 callers
Function
hasAlertBeenSent
(apiName: ApiName, threshold: number)
lib/redis.ts:138
↓ 3 callers
Function
normalizeAngle
(angle: number)
components/Map.tsx:146
↓ 3 callers
Function
toRad
(deg: number)
lib/gpx.ts:297
↓ 3 callers
Function
toRad
(deg: number)
app/page.tsx:571
↓ 3 callers
Function
trackApiUsage
(apiName: ApiName, count: number = 1)
lib/redis.ts:77
↓ 2 callers
Function
add3DTerrainLayer
()
components/Map.tsx:1204
↓ 2 callers
Function
addRoutes
()
components/Map.tsx:2031
↓ 2 callers
Function
calculateDuration
(points: TrackPoint[])
lib/gpx.ts:144
↓ 2 callers
Function
escapeHtml
(text: string)
app/api/feedback/route.ts:159
↓ 2 callers
Function
escapeXml
* Escape special characters for XML
lib/gpx.ts:203
↓ 2 callers
Function
formatDuration
(ms: number)
lib/gpx.ts:215
↓ 2 callers
Function
generateGPX
(points: TrackPoint[], name: string)
lib/gpx.ts:16
↓ 2 callers
Function
generateUUID
()
lib/gpx.ts:192
↓ 2 callers
Function
getAngleDiff
(from: number, to: number)
components/Map.tsx:151
↓ 2 callers
Function
getApiUsage
(apiName: ApiName)
lib/redis.ts:100
↓ 2 callers
Function
getBoundsSize
(bounds: typeof BASE_BOUNDS)
scripts/test-waze-bounds.ts:21
↓ 2 callers
Function
getNightOverlayOpacity
()
components/Map.tsx:158
↓ 2 callers
Function
handleSelect
(result: SearchResult)
components/NavigateSearch.tsx:105
↓ 2 callers
Function
markAlertSent
(apiName: ApiName, threshold: number)
lib/redis.ts:148
↓ 2 callers
Function
removeAllRouteLayers
()
components/Map.tsx:2000
↓ 2 callers
Function
sendAlertEmail
( apiName: string, usage: number, limit: number, threshold: number )
app/api/admin/usage/route.ts:267
↓ 2 callers
Function
toMeters
(lat: number, lng: number, refLat: number, refLng: number)
app/page.tsx:203
↓ 2 callers
Function
useGeolocation
(enableHighAccuracy = true)
hooks/useGeolocation.ts:77
↓ 1 callers
Function
add3DTerrain
()
components/Map.tsx:1119
↓ 1 callers
Function
addInitial3DTerrain
()
components/Map.tsx:679
↓ 1 callers
Function
addInitialTraffic
()
components/Map.tsx:633
↓ 1 callers
Function
boundsOverlap
(a: MapBounds, b: MapBounds)
hooks/useWazeAlerts.ts:53
↓ 1 callers
Function
buildOverpassQuery
(south: number, west: number, north: number, east: number)
app/api/speedcameras/route.ts:39
↓ 1 callers
Function
buildRouteSummary
(steps: Array<{ name: string; distance: number }>, index: number)
app/api/directions/route.ts:150
↓ 1 callers
Function
calculateBearing
( lat1: number, lon1: number, lat2: number, lon2: number )
hooks/useGeolocation.ts:20
↓ 1 callers
Function
calculateBounds
(points: TrackPoint[])
lib/gpx.ts:121
↓ 1 callers
Function
calculateBoundsOverlap
(a: MapBounds, b: MapBounds)
hooks/useSpeedCameras.ts:17
↓ 1 callers
Function
calculateDistance
( lat1: number, lon1: number, lat2: number, lon2: number )
hooks/useGeolocation.ts:43
↓ 1 callers
Function
checkRateLimit
(ip: string)
app/api/feedback/route.ts:11
↓ 1 callers
Function
checkRateLimit
()
app/api/waze/route.ts:13
↓ 1 callers
Function
checkRateLimit
()
app/api/speedcameras/route.ts:17
↓ 1 callers
Function
clusterAlerts
( alerts: WazeAlert[], clusterRadius: number = 0.002 // ~200m at equator )
components/Map.tsx:96
↓ 1 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 1 callers
Function
createCirclePolygon
(lng: number, lat: number, radiusMeters: number, points = 64)
components/Map.tsx:1368
↓ 1 callers
Function
downloadFile
(url, filename)
scripts/download-waze-icons.js:23
↓ 1 callers
Function
downloadGPX
(gpxString: string, filename: string)
lib/gpx.ts:230
↓ 1 callers
Function
expandBounds
(bounds: typeof BASE_BOUNDS, multiplier: number)
scripts/test-waze-bounds.ts:34
↓ 1 callers
Function
expandBounds
(bounds: MapBounds, multiplier: number)
hooks/useWazeAlerts.ts:24
↓ 1 callers
Function
fetchPlaceName
()
hooks/useReverseGeocode.ts:64
↓ 1 callers
Function
fetchWazeAlerts
(bounds: typeof BASE_BOUNDS)
scripts/test-waze-bounds.ts:49
↓ 1 callers
Function
formatBytes
(bytes)
public/sw.js:140
↓ 1 callers
Function
formatDistance
(meters: number)
components/RouteSelector.tsx:24
↓ 1 callers
Function
formatDistance
(meters: number)
app/page.tsx:43
↓ 1 callers
Function
formatDuration
(seconds: number)
components/RouteSelector.tsx:13
↓ 1 callers
Function
formatDuration
(seconds: number)
app/page.tsx:32
↓ 1 callers
Function
generateRecordingName
()
lib/gpx.ts:156
↓ 1 callers
Function
getCacheKey
(lng: number, lat: number)
app/api/geocode/reverse/route.ts:10
↓ 1 callers
Function
getCacheKey
(left: string, right: string, bottom: string, top: string)
app/api/waze/route.ts:6
↓ 1 callers
Function
getCacheKey
(url: string)
app/api/tiles/route.ts:28
↓ 1 callers
Function
getCacheKey
(left: string, right: string, bottom: string, top: string)
app/api/speedcameras/route.ts:10
↓ 1 callers
Function
getClusterId
(cluster: AlertCluster)
components/Map.tsx:1619
↓ 1 callers
Function
getDailyUsage
(apiName: ApiName, days: number = 7)
lib/redis.ts:110
↓ 1 callers
Function
getDayKey
()
lib/redis.ts:69
↓ 1 callers
Function
getDistanceKm
* Calculate distance between two points using Haversine formula * Returns distance in kilometers
app/api/geocode/route.ts:30
↓ 1 callers
Function
getProgressColor
(percent: number)
app/admin/page.tsx:188
↓ 1 callers
Function
getRouteLabel
(index: number, routes: RouteData[])
components/RouteSelector.tsx:33
↓ 1 callers
Function
getStatusColor
(status: UsageStats["status"])
app/admin/page.tsx:162
↓ 1 callers
Function
getStatusLabel
(status: UsageStats["status"])
app/admin/page.tsx:175
↓ 1 callers
Function
handleInputChange
(value: string)
components/NavigateSearch.tsx:92
↓ 1 callers
Function
interpolateAngle
* Interpolate between two angles, handling wraparound
lib/gpx.ts:280
↓ 1 callers
Function
interpolatePosition
( pointA: TrackPoint, pointB: TrackPoint, targetTime: number )
lib/gpx.ts:245
↓ 1 callers
Function
isAllowedUrl
(url: string)
app/api/tiles/route.ts:23
↓ 1 callers
Function
isCacheValid
(response)
public/sw.js:45
↓ 1 callers
Function
isViewportContained
(viewport: MapBounds, fetchedBounds: MapBounds)
hooks/useWazeAlerts.ts:43
↓ 1 callers
Function
lerpAngle
(from: number, to: number, t: number)
hooks/useGeolocation.ts:72
↓ 1 callers
Function
main
()
scripts/download-waze-icons.js:54
↓ 1 callers
Function
normalizeAngleDiff
(angle: number)
hooks/useGeolocation.ts:65
↓ 1 callers
Function
parseGPX
(gpxString: string)
lib/gpx.ts:64
↓ 1 callers
Function
parseShutdownFlag
(value: string | undefined)
lib/shutdown.ts:3
↓ 1 callers
Function
remove3DTerrain
()
components/Map.tsx:1172
↓ 1 callers
Function
removeExisting
()
components/Map.tsx:1395
↓ 1 callers
Function
removeTrafficLayer
()
components/Map.tsx:1089
↓ 1 callers
Function
runTests
()
scripts/test-waze-bounds.ts:113
↓ 1 callers
Function
shouldCache
(url)
public/sw.js:40
↓ 1 callers
Function
toDeg
(rad: number)
lib/gpx.ts:298
↓ 1 callers
Function
toDeg
(rad: number)
app/page.tsx:572
↓ 1 callers
Function
toDeg
(rad: number)
hooks/useGeolocation.ts:27
↓ 1 callers
Function
useGPXPlayer
(options: UseGPXPlayerOptions = {})
hooks/useGPXPlayer.ts:37
↓ 1 callers
Function
useGPXRecorder
(options: UseGPXRecorderOptions = {})
hooks/useGPXRecorder.ts:43
next →
1–100 of 200, ranked by callers