diff options
author | Niels Weber <niels.weber@theqtcompany.com> | 2015-05-29 08:15:53 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-05-29 07:22:07 +0000 |
commit | 23d8903dd4edc368af9c82f9fd53cacc16efabe4 (patch) | |
tree | 0b0b99a679888c167d0643e629eb6bee420ebeef | |
parent | 7701b2506e579860fe00e6f0e2a48b963ae22536 (diff) |
Don't use polygon but polygon_geojson for nominatim queries
According to osm this is the way to go.
See https://trac.openstreetmap.org/ticket/5319 for reference.
Change-Id: I77948719a0e5d2598517c6a3c84d73b589a3a03b
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
-rw-r--r-- | src/plugins/geoservices/osm/qgeocodingmanagerengineosm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/osm/qgeocodingmanagerengineosm.cpp b/src/plugins/geoservices/osm/qgeocodingmanagerengineosm.cpp index 3278939d..4ddc8a79 100644 --- a/src/plugins/geoservices/osm/qgeocodingmanagerengineosm.cpp +++ b/src/plugins/geoservices/osm/qgeocodingmanagerengineosm.cpp @@ -109,7 +109,7 @@ QGeoCodeReply *QGeoCodingManagerEngineOsm::geocode(const QString &address, int l query.addQueryItem(QStringLiteral("viewbox"), boundingBoxToLtrb(bounds)); query.addQueryItem(QStringLiteral("bounded"), QStringLiteral("1")); } - query.addQueryItem(QStringLiteral("polygon"), QStringLiteral("1")); + query.addQueryItem(QStringLiteral("polygon_geojson"), QStringLiteral("1")); query.addQueryItem(QStringLiteral("addressdetails"), QStringLiteral("1")); if (limit != -1) query.addQueryItem(QStringLiteral("limit"), QString::number(limit)); |