aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/api
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-04-04 17:26:20 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2026-04-04 17:35:34 +0200
commit73a52022d549ee3b401cea938f40321702c52b2b (patch)
treec1fd67df2afe71262a95dc1eb39625014920f6fd /src/frontend/app/api
parentc558c8b6134df3b65d984430b58cffa26eb0b297 (diff)
Update marker design for positions without bearing
Diffstat (limited to 'src/frontend/app/api')
-rw-r--r--src/frontend/app/api/schema.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/frontend/app/api/schema.ts b/src/frontend/app/api/schema.ts
index 4d34a44..fe90642 100644
--- a/src/frontend/app/api/schema.ts
+++ b/src/frontend/app/api/schema.ts
@@ -37,7 +37,7 @@ export const ShiftBadgeSchema = z.object({
export const PositionSchema = z.object({
latitude: z.number(),
longitude: z.number(),
- orientationDegrees: z.number().optional().nullable(),
+ bearing: z.number().optional().nullable(),
shapeIndex: z.number().optional().nullable(),
});
@@ -174,12 +174,7 @@ export const ConsolidatedCirculationSchema = z.object({
.optional()
.nullable(),
currentPosition: z
- .object({
- latitude: z.number(),
- longitude: z.number(),
- orientationDegrees: z.number(),
- shapeIndex: z.number().optional().nullable(),
- })
+ .object(PositionSchema)
.optional()
.nullable(),
isPreviousTrip: z.boolean().optional().nullable(),