地図とナビゲーション (C++)
Maps and Navigationは、ジオコーディング(住所から地理座標を求めること)やナビゲーション(運転や徒歩の案内を含む)のためのC++ユーティリティを提供します。
現在のところ、C++で地図を操作することはできません。地図アプリケーションはMaps and Navigation (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.