svc-transport-logistics¶
NovaTrek Transport Logistics API | Logistics | v1.4.0 | NovaTrek Platform Engineering
Manages shuttle buses, van pickups, and transport coordination between NovaTrek
Swagger UI Download OpenAPI Spec
Integration Context¶
Data Store¶
Overview¶
| Property | Detail |
|---|---|
| Engine | PostgreSQL 15 |
| Schema | transport |
| Tables | routes, route_schedules, transport_requests, vehicles |
| Estimated Volume | ~300 transport requests/day |
| Connection Pool | min 3 / max 10 / idle timeout 10min |
| Backup Strategy | Daily pg_dump, 14-day retention |
Key Features¶
- Time-window optimization for route scheduling
- Vehicle capacity tracking with overbooking prevention
- GPS coordinate storage for pickup and dropoff points
Table Reference¶
vehicles¶
Fleet vehicles with capacity and maintenance status
| Column | Type | Constraints |
|---|---|---|
vehicle_id | UUID | PK |
registration | VARCHAR(20) | NOT NULL, UNIQUE |
vehicle_type | VARCHAR(30) | NOT NULL |
capacity | INTEGER | NOT NULL |
status | VARCHAR(20) | NOT NULL, DEFAULT 'available' |
current_location | POINT | NULL |
last_service_date | DATE | NULL |
Indexes:
idx_vehicle_statusonstatusidx_vehicle_typeonvehicle_type
transport_requests¶
Guest and staff transport requests with pickup windows
| Column | Type | Constraints |
|---|---|---|
request_id | UUID | PK |
route_id | UUID | NOT NULL, FK -> routes |
vehicle_id | UUID | NULL, FK -> vehicles |
passenger_count | INTEGER | NOT NULL |
pickup_time | TIMESTAMPTZ | NOT NULL |
pickup_location | POINT | NOT NULL |
dropoff_location | POINT | NOT NULL |
status | VARCHAR(20) | NOT NULL |
created_at | TIMESTAMPTZ | NOT NULL |
Indexes:
idx_treq_routeonroute_ididx_treq_pickuponpickup_timeidx_treq_vehicleonvehicle_id
Endpoints (7 total)¶
GET /routes -- List transport routes¶
Returns available transport routes with optional filtering by origin, destination, or active status.
POST /routes -- Create a new transport route¶
GET /routes/{route_id}/schedule -- Get schedule for a transport route¶
Returns the daily schedule of departures for a given route, optionally filtered by date range.
POST /transport-requests -- Request transport for a reservation¶
Creates a transport request linked to an existing reservation
GET /transport-requests/{request_id} -- Get transport request details¶
GET /vehicles -- List fleet vehicles¶
PATCH /vehicles/{vehicle_id} -- Update vehicle information¶
Consuming Applications¶
| Application | Screens Using This Service |
|---|---|
| Operations Dashboard | Transport Dispatch |