Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ODsay 호출 시 RouteTime 매핑 실패 #821

Closed
eun-byeol opened this issue Oct 23, 2024 · 0 comments · Fixed by #886
Closed

fix: ODsay 호출 시 RouteTime 매핑 실패 #821

eun-byeol opened this issue Oct 23, 2024 · 0 comments · Fixed by #886
Assignees
Labels

Comments

@eun-byeol
Copy link
Contributor

📝 작업 내용

ODsay API에서는 정상 응답이 오는데, RouteTimes minutes는 empty 를 반환함

ODsay 응답

2024-10-23 15:44:03.793 [INFO] [http-nio-8080-exec-10] [a1dead46-55ae-448f-9fac-0e13684dc41e] [c.o.r.c.RouteClientLoggingInterceptor] - [RouteClient Response] Status: 200 OK, Body: 
{
    "result": {
        "searchType": 0,
        "outTrafficCheck": 0,
        "busCount": 10,
        "subwayCount": 0,
        "subwayBusCount": 5,
        "pointDistance": 23436,
        "startRadius": 700,
        "endRadius": 700,
        "path": [
            {
                "pathType": 3,
                "info": {
                    "trafficDistance": 29459,
                    "totalWalk": 1273,
                    "totalTime": 78,
                    "payment": 1800,
                    "busTransitCount": 1,
                    "subwayTransitCount": 1,
                    "mapObj": "715:1:7:12@11:2:133:151",
                    "firstStartStation": "남산북측순환로입구",
                    "lastEndStation": "부개",
                    "totalStationCount": 23,
                    "busStationCount": 5,
                    "subwayStationCount": 18,
                    "totalDistance": 30732,
                    "totalWalkTime": -1,
                    "checkIntervalTime": 100,
                    "checkIntervalTimeOverYn": "N",
                    "totalIntervalTime": 15
                },
                "subPath": [
                    {
                        "trafficType": 3,
                        "distance": 170,
                        "sectionTime": 3
                    },
                    {
                        "trafficType": 2,
                        "distance": 4359,
                        "sectionTime": 16,
                        "stationCount": 5,
                        "lane": [
                            {
                                "busNo": "01(녹색순환)",
                                "type": 13,
                                "busID": 715,
                                "busLocalBlID": "100100001",
                                "busCityCode": 1000,
                                "busProviderCode": 4
                            }
                        ],
                        "intervalTime": 9,
                        "startName": "남산북측순환로입구",
                        "startX": 126.998831,
                        "startY": 37.550898,
                        "endName": "남대문시장악세사리전문상가",
                        "endX": 126.976203,
                        "endY": 37.558679,
                        "startID": 206628,
                        "startStationCityCode": 1000,
                        "startStationProviderCode": 4,
                        "startLocalStationID": "101000149",
                        "startArsID": "02-254",
                        "endID": 104755,
                        "endStationCityCode": 1000,
                        "endStationProviderCode": 4,
                        "endLocalStationID": "101000029",
                        "endArsID": "02-124",
                        "passStopList": {
                            "stations": [
                                {
                                    "index": 0,
                                    "stationID": 206628,
                                    "stationName": "남산북측순환로입구",
                                    "stationCityCode": 1000,
                                    "stationProviderCode": 4,
                                    "localStationID": "101000149",
                                    "arsID": "02-254",
                                    "x": "126.998831",
                                    "y": "37.550898",
                                    "isNonStop": "N"
                                },
                                {
                                    "index": 1,
                                    "stationID": 112221,
                                    "stationName": "남산서울타워",
                                    "stationCityCode": 1000,
                                    "stationProviderCode": 4,
                                    "localStationID": "102000226",
                                    "arsID": "03-320",
                                    "x": "126.991089",
                                    "y": "37.550959",
                                    "isNonStop": "N"
                                },
                                {
                                    "index": 2,
                                    "stationID": 5008113,
                                    "stationName": "남산도서관",
                                    "stationCityCode": 1000,
                                    "stationProviderCode": 4,
                                    "localStationID": "102000316",
                                    "arsID": "03-347",
                                    "x": "126.98179",
                                    "y": "37.552375",
                                    "isNonStop": "N"
                                },
                                {
                                    "index": 3,
                                    "stationID": 104831,
                                    "stationName": "백범광장",
                                    "stationCityCode": 1000,
                                    "stationProviderCode": 4,
                                    "localStationID": "101000111",
                                    "arsID": "02-215",
                                    "x": "126.980297",
                                    "y": "37.555632",
                                    "isNonStop": "N"
                                },
                

매핑된 RouteTime

2024-10-23 15:44:03.802 [INFO] [http-nio-8080-exec-10] [a1dead46-55ae-448f-9fac-0e13684dc41e] [c.ody.route.service.OdsayRouteClient] - ODsay API 호출 : OdsayResponse[code=Optional.empty, message=Optional.empty, minutes=OptionalLong.empty]
@eun-byeol eun-byeol changed the title fix: ODsay 호출 시 RouteTime 계산 실패 fix: ODsay 호출 시 RouteTime 매핑 실패 Oct 23, 2024
@eun-byeol eun-byeol self-assigned this Nov 5, 2024
@eun-byeol eun-byeol linked a pull request Nov 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant