地図とナビゲーション (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.