routeManeuver QML Type

routeManeuver 유형은 두 경로 세그먼트가 만나는 지점과 관련된 정보를 나타냅니다. 더 보기...

Import Statement: import QtLocation 6.8
Since: QtLocation 5.5

속성

자세한 설명

routeSegment 인스턴스는 라우팅 그래프의 가장자리로 생각할 수 있으며, routeManeuver 인스턴스는 그래프의 꼭지점에 부착된 선택적 레이블로 볼 수 있습니다.

routeManeuver 인스턴스에서 가장 흥미로운 정보는 일반적으로 제공할 텍스트 내비게이션과 이를 제공할 위치이며, 각각 instructionTextposition 으로 액세스할 수 있습니다.

예시

다음 QML 스니펫은 경로 기동에 대한 정보를 인쇄하는 방법을 보여줍니다:

import QtQuick
import QtPositioning
import QtLocation

Text {
    text: "Distance till next maneuver: " + routeManeuver.distanceToNextInstruction
          + " meters, estimated time: " + routeManeuver.timeToNextInstruction + " seconds."
}

속성 문서

direction : enumeration

routeManeuver 에 연결된 명령 텍스트와 관련된 방향 변경을 설명합니다.

  • RouteManeuver.NoDirection - 명령 텍스트와 연결된 방향이 없습니다.
  • RouteManeuver.DirectionForward - 지침은 이동 방향을 변경할 필요가 없음을 나타냅니다.
  • RouteManeuver.DirectionBearRight - 이동 방향이 오른쪽을 향해야 함을 나타내는 지시문입니다.
  • RouteManeuver.DirectionLightRight - 이 명령은 오른쪽으로 가볍게 회전해야 함을 나타냅니다.
  • RouteManeuver.DirectionRight - 오른쪽으로 회전해야 함을 나타냅니다.
  • RouteManeuver.DirectionHardRight - 오른쪽으로 급선회해야 함을 나타냅니다.
  • RouteManeuver.DirectionUTurnRight - 오른쪽으로 유턴이 필요하다는 명령입니다.
  • RouteManeuver.DirectionUTurnLeft - 왼쪽으로 유턴이 필요하다는 명령입니다.
  • RouteManeuver.DirectionHardLeft - 좌회전 유턴이 필요함을 나타냅니다.
  • RouteManeuver.DirectionLeft - 좌회전이 필요함을 나타냅니다.
  • RouteManeuver.DirectionLightLeft - 왼쪽으로 가볍게 선회해야 함을 나타냅니다.
  • RouteManeuver.DirectionBearLeft - 이동 방향이 왼쪽을 향해야 함을 나타냅니다.

distanceToNextInstruction : real

이 읽기 전용 속성은 관련 명령이 실행된 지점과 다음 명령이 실행되어야 하는 지점 사이의 거리(미터)를 보유합니다.


extendedAttributes : Object [since QtLocation 5.11]

이 속성은 기동의 확장 속성을 보유하며 지도입니다. 이러한 속성은 플러그인별로 다르며 비워둘 수 있습니다.

지원되는 속성과 사용 방법은 플러그인 설명서를 참조하세요.

QQmlPropertyMap 의 제한으로 인해 QML에서 속성을 선언적으로 지정할 수 없으므로 속성 키와 값의 할당은 자바스크립트로만 수행할 수 있습니다.

이 속성은 QtLocation 5.11에 도입되었습니다.


instructionText : string

이 읽기 전용 속성은 텍스트 탐색 명령을 저장합니다.


position : coordinate

이 읽기 전용 속성은 instructionText 가 표시되어야 하는 위치를 저장합니다.


timeToNextInstruction : int

이 읽기 전용 속성은 관련 명령이 실행된 지점에서 다음 명령이 실행되어야 하는 지점까지 이동하는 데 걸리는 예상 시간(초)을 초 단위로 저장합니다.


valid : bool

이 읽기 전용 속성은 이 기동이 유효한지 여부를 보유합니다.

유효하지 않은 기동은 QGeoRouteSegment 인스턴스의 엔드포인트에 첨부해야 할 정보가 없을 때 사용됩니다.


waypoint : coordinate

이 프로퍼티는 이 기동과 관련된 웨이포인트를 보유합니다. 모든 기동에 웨이포인트가 연결된 것은 아닙니다.


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.