차량 목적지 경로 미리보기 추가
This commit is contained in:
12
README.md
12
README.md
@@ -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" `
|
||||
|
||||
Reference in New Issue
Block a user