시뮬레이션결과 (제공)

국6 디지털트윈 시뮬레이션 목록과 결과를 제공합니다. 자율차 혼재 시 교통상황 분석 등에 활용할 수 있습니다.

1. 시뮬레이션 목록 조회 API (GetTrafficSimulationList)

요청 URL

https://service.mqnicrnd5.com/api/v1/simul/offer/gtsl

연계 주기

요청 시

프로토콜

HTTPS

HTTP 메서드

GET

데이터 포맷

참고사항

API를 요청할 때 다음 예와 같이 HTTP 요청 헤더에 접근 토큰(Access Token) 을 추가해야 합니다. 접근 토큰 앞에 "Bearer " 문자열을 추가해야 한다는 점에 주의하세요.

> GET /api/v1/simul/offer/gtsl?minAmRatio=1&maxAmRatio=1&simTime=none&accidentYn=n&rainfallYn=n&snowfallYn=n HTTP/2
> Host: service.mqnicrnd5.com
> User-Agent: curl/7.64.1
> Accept: */*
> Authorization: Bearer <접근 토큰>

요청 예시

curl --location 'https://service.mqnicrnd5.com/api/v1/simul/offer/gtsl?minAmRatio=1&maxAmRatio=1&simTime=none&accidentYn=n&rainfallYn=n&snowfallYn=n' \
--header 'Authorization: Bearer <접근 토큰>'

응답 예시

{
    "simList": [
        {
            "simId": "sm_20240913150327",
            "simInfo": {
                "amMixRatio": 1,
                "simTime": "none",
                "accident": "n",
                "rainfall": "n",
                "snowfall": "n"
            },
            "simResultIndex": {
                "riskIndex": 36.5,
                "avergeSpeed": 47.5
            }
        },
        {
            "simId": "sm_20230913150327",
            "simInfo": {
                "amMixRatio": 10,
                "simTime": "ampeak",
                "accident": "n",
                "rainfall": "n",
                "snowfall": "n"
            },
            "simResultIndex": {
                "riskIndex": 36.5,
                "avergeSpeed": 47.5
            }
        }
    ]
}

2. 시뮬레이션 결과 조회 API (GetTrafficSimulationData)

요청 URL

https://service.mqnicrnd5.com/api/v1/simul/offer/gtsd

연계 주기

요청 시

프로토콜

HTTPS

HTTP 메서드

GET

데이터 포맷

참고사항

API를 요청할 때 다음 예와 같이 HTTP 요청 헤더에 접근 토큰(Access Token) 을 추가해야 합니다. 접근 토큰 앞에 "Bearer " 문자열을 추가해야 한다는 점에 주의하세요.

> GET /api/v1/simul/offer/gtsd?simId=sm_20240913150327 HTTP/2
> Host: service.mqnicrnd5.com
> User-Agent: curl/7.64.1
> Accept: */*
> Authorization: Bearer <접근 토큰>

요청 예시

curl --location 'https://service.mqnicrnd5.com/api/v1/simul/offer/gtsd?simId=sm_20240913150327' \
--header 'Authorization: Bearer <접근 토큰>'

응답 예시

[
    {
        "simId": "sm_20240913150327",
        "scenEvaluIndices": {
            "wayOffPath": 0.454541955332974,
            "lateralAccelation": -0.299322605133056,
            "longitudinalAcceleration": -3.49749112129211,
            "speedExcess": 2.1,
            "speedDeficit": 2.1,
            "safeDistance": 14.5,
            "timeToCollision": 12.5937247
        },
        "drivingLog": [
            [
                1.110045,
                "NPC_1",
                201.147048950195,
                1727.87084960937,
                -0.17266821861267,
                -2.82074546813964,
                0.0427007637917995,
                0.0449028611
            ],
            [
                1.110045,
                "NPC_2",
                201.147048950195,
                1727.87084960937,
                -0.17266821861267,
                -2.82074546813964,
                0.0427007637917995,
                0.0449028611
            ],
            [
                1.110045,
                "NPC_3",
                201.147048950195,
                1727.87084960937,
                -0.17266821861267,
                -2.82074546813964,
                0.0427007637917995,
                0.0449028611
            ]
        ]
    }
]

Last updated