Get comprehensive trip details from Postgres combined with real-time analytics from DuckDB
Documentation Index
Fetch the complete documentation index at: https://docs.bookovia.com/llms.txt
Use this file to discover all available pages before exploring further.
X-API-Key header.
Required permissions: trips:read
| Data Type | Storage | Reason |
|---|---|---|
| Trip Metadata | Postgres | Transactional data, ACID guarantees |
| GPS Analytics | DuckDB | Fast aggregations on millions of points |
SUM(distance) across 1 million GPS points in 30ms, while Postgres would take 2-5 seconds for the same query.| Operation | Response Time | Details |
|---|---|---|
| Postgres Query | 5-10ms | Trip metadata lookup (indexed by trip_id) |
| DuckDB Query | 10-30ms | Analytics aggregation on location_points |
| Total | 15-40ms | Parallel execution, returns combined result |
| Endpoint | Data Returned | Use Case | Response Time |
|---|---|---|---|
| Get Trip (Simple) | Postgres metadata only | Basic trip info | 5-10ms |
| Get Mileage (Hybrid) | DuckDB analytics only | Live distance tracking | 10-30ms |
| Get Trip with Analytics (Hybrid) | Both Postgres + DuckDB | Complete trip report | 15-40ms |
GET /mileage instead (faster)GET /trips/:id instead