지도 및 내비게이션(C++)

지도 및 내비게이션은 지오코딩(주소에서 지리적 좌표 찾기) 및 내비게이션(운전 및 도보 길 찾기 포함)을 위한 C++ 유틸리티를 제공합니다.

현재 C++를 통해 지도와 상호 작용할 수 없습니다. 매핑 애플리케이션은 지도 및 내비게이션(QML) API를 사용해야 합니다.

지오코딩

C++에서 주소 대 좌표 쿼리는 QGeoCodingManager 클래스의 geocode() 메서드를 사용하여 수행됩니다. 좌표 대 주소 쿼리의 경우 같은 클래스에서 reverseGeocode() 메서드를 사용할 수 있습니다. QGeoCodingManager 의 인스턴스는 QGeoServiceProvider 을 통해 사용할 수 있습니다.

주요 클래스

QGeoServiceProvider사용할 준비가 된 QGeoCodingManager 인스턴스를 제공합니다.
QGeoCodingManager쿼리를 수락하고 QGeoCodeReply 객체를 생성합니다.
QGeoCodeReply지오코딩 쿼리 결과를 포함합니다.

C++에서는 QGeoRoutingManager 클래스의 calculate() 메서드를 사용하여 경로 쿼리를 수행합니다. 반환된 경로 응답에는 동일한 목적지로 가는 여러 경로가 포함될 수 있습니다.

주요 클래스

QGeoServiceProvider사용할 준비가 된 QGeoCodingManager 인스턴스를 제공합니다.
QGeoRoutingManager쿼리를 수락하고 QGeoRouteReply 객체를 생성합니다.
QGeoRouteReply라우팅 쿼리의 결과를 포함합니다.
QGeoRoute경로에 대한 정보를 포함합니다.

© 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.