Camera Displaying Files

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

10 Terms

1
New cards

OverpassApi.kt

Defines the single Overpass request (send query, get JSON back) and the shape of the response we’ll get (id, lat, lon, timestamp, and tags)

2
New cards

OverpassClient.kt

Sets up the network connection for the request, including defining the server address, the app name (Overpass has you give the app name in requests), and an extended timeout since the server can be slow

3
New cards

AlprCamera.kt

Defines the AlprCamera class, the 1° grid square, the Overpass query text, and the conversion from Overpass data to Camera objects.

4
New cards

CameraDirection.kt

Just converts the direction tag in compass bearings

5
New cards

CameraCache.kt

Saves and loads one JSON file per grid square onscreen

6
New cards

CameraRepository.kt

Decides whether to use cached cam locations or to make a new request

7
New cards

CameraViewModel.kt

Figures out which grid squares are on the screen, loads them, keeps the combined list of cameras, and tracks the status (loading, failed, or too zoomed out) for the message shown on screen

8
New cards

AlprIcons.kt

Draws red triangles with “!” and vision cones

9
New cards

AlprLayer.kt

Adds the two map layers (cones then triangles on top) and updates whenever camera list changes

10
New cards

MapScreen.kt

Serves visible area to CameraViewModel when map is dormant, redraws cams when light/dark mode is toggled, and shows the status message under search bar)