차량 목적지 경로 미리보기 추가

This commit is contained in:
2026-06-06 19:10:24 +09:00
parent 34bb805400
commit 1dc93c5c78
4 changed files with 564 additions and 7 deletions

View File

@@ -181,8 +181,18 @@ $body = @{
cargoWeight = "1.2t"
origin = "서울 상차지"
destination = "평택 물류센터"
destinationLatitude = 36.9921
destinationLongitude = 127.1128
routePath = @(
@{ latitude = 37.5665; longitude = 126.9780 },
@{ latitude = 37.33; longitude = 127.05 },
@{ latitude = 36.9921; longitude = 127.1128 }
)
remainingDistanceKm = 74.5
etaMinutes = 68
estimatedArrivalAt = (Get-Date).AddMinutes(68).ToUniversalTime().ToString("o")
recordedAt = (Get-Date).ToUniversalTime().ToString("o")
} | ConvertTo-Json
} | ConvertTo-Json -Depth 4
Invoke-RestMethod `
-Uri "http://localhost:8080/api/v1/locations" `