이 페이지에서

지도 및 내비게이션 (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경로에 대한 정보를 포함합니다.

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