From 23d8903dd4edc368af9c82f9fd53cacc16efabe4 Mon Sep 17 00:00:00 2001 From: Niels Weber Date: Fri, 29 May 2015 08:15:53 +0200 Subject: 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 --- src/plugins/geoservices/osm/qgeocodingmanagerengineosm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/geoservices/osm/qgeocodingmanagerengineosm.cpp') 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)); -- cgit v1.2.3