기본적으로 Android용 Navigation SDK는 경유지로 가는 가장 빠른 경로를 찾지만, 소비자가 기다리는 도로변에 차량이 도착하거나 도착 장소가 운전자가 정차하기에 안전하다는 보장은 없습니다. 이 가이드에서는 이러한 상황에 사용할 수 있는 두 가지 기능을 설명합니다.
도로 측면 경로 환경설정
경유지 기능
경로 측면 라우팅 환경설정
정류장의 경유지를 만들 때 도로의 특정 쪽으로 도착하도록 환경설정을 지정할 수 있습니다. 선호도를 지정하는 방법은 두 가지입니다. 도로의 동일한 쪽을 선호하거나 도착 방향을 제공할 수 있습니다.
같은 쪽 도로 선호
경유지의 지리적 좌표를 제공한 다음 경유지와 같은 쪽 도로에 도착하는 것을 선호한다는 것을 나타내는 플래그(setPreferSameSideOfRoad)를 설정합니다. 이 플래그는 가장 가까운 인도로 스냅됩니다.
Navigation SDK는 경유지와 가장 가까운 도로 구간을 선택합니다. 이 도로 구간의 차선 방향은 경유지가 있는 도로 측면과 +/- 55도 이내로 정렬됩니다.
경유지 환경설정 지정
특정 장소에서는 운전자가 안전하게 정차할 수 없습니다 (예: 고가 도로, 페리, 지하 장소, 접근이 제한된 기타 지역). 경유지 기능은 차량이 정차하기에 적합하지 않은 위치에 경유지가 있는 경우 근처 장소로 경유지를 재배치합니다. setVehicleStopover을 true로 설정하면 대체 위치가 있는 경우 경로가 계산될 때 경유지가 자동으로 재배치됩니다.
작동 방식
정차 지점의 경유지를 만들 때 해당 정차 지점의 환경설정을 설정합니다.
이렇게 하려면 다음 예와 같이 setVehicleStopover 환경설정을 지정합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eThe Navigation SDK for Android now uses \u003ccode\u003eWaypoint.Builder\u003c/code\u003e to create waypoints with options for side-of-road routing and stopover preferences.\u003c/p\u003e\n"],["\u003cp\u003eYou can ensure arrival on the desired side of the road by setting \u003ccode\u003esetPreferSameSideOfRoad\u003c/code\u003e or providing an arrival heading using \u003ccode\u003esetPreferredHeading\u003c/code\u003e when building a waypoint.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetVehicleStopover\u003c/code\u003e preference within \u003ccode\u003eWaypoint.Builder\u003c/code\u003e relocates waypoints to safer nearby locations if the initial location isn't suitable for stopping.\u003c/p\u003e\n"]]],[],null,[]]