# Unit Tests: RouteService **Task**: AZ-288_route_service_tests **Name**: Unit tests: RouteService (interpolation, geofence, distance) **Complexity**: 3 points **Dependencies**: AZ-285 **Component**: Blackbox Tests **Tracker**: AZ-288 **Epic**: AZ-284 ## Scenarios - BT-06: Simple 2-point route — verify intermediate points at ≤200m spacing, point types correct - BT-07: Route retrieval — verify GET returns same route with all points - BT-10: Complex 10-point route — verify point distribution (1 first-original, 1 last-original, 8 intermediate) - BT-11: Geofenced route — verify geofence region creation - BT-12: Extended 20-point route — verify point distribution (1 first-original, 1 last-original, 18 intermediate) - BT-N03: Route with <2 points — verify validation error - BT-N04/N05: Invalid geofences — verify validation errors ## Test Data Route points from test_coordinates.md (ROUTE-01 through ROUTE-06) ## Acceptance Criteria AC-1: Point interpolation produces spacing ≤200m between all consecutive points AC-2: Point type assignment is correct (original/intermediate) AC-3: Total distance is calculated via Haversine AC-4: Negative cases return appropriate errors