summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <[email protected]>2015-08-28 21:49:26 +0200
committerDennis Nienhüser <[email protected]>2015-08-28 21:49:26 +0200
commit7376b9784cf1a288e3b8da03bb46c94d8274c79d (patch)
tree5ad4475610d2c1576ae261a2d32e4f2e4397c24c
parent3ff16bb1b4f38c8105c82f5d0d16c3316d580f15 (diff)
Use nominatim display_name field to set the address
-rw-r--r--src/plugins/runner/nominatim-search/OsmNominatimSearchRunner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/runner/nominatim-search/OsmNominatimSearchRunner.cpp b/src/plugins/runner/nominatim-search/OsmNominatimSearchRunner.cpp
index 27d849c..a1596f4 100644
--- a/src/plugins/runner/nominatim-search/OsmNominatimSearchRunner.cpp
+++ b/src/plugins/runner/nominatim-search/OsmNominatimSearchRunner.cpp
@@ -178,6 +178,7 @@ void OsmNominatimRunner::handleResult( QNetworkReply* reply )
}
placemark->setName( placemarkName );
placemark->setDescription(description);
+ placemark->setAddress(desc);
placemark->setCoordinate( lon.toDouble(), lat.toDouble(), 0, GeoDataCoordinates::Degree );
GeoDataFeature::GeoDataVisualCategory category = OsmPresetLibrary::OsmVisualCategory( key + '=' + value );
placemark->setVisualCategory( category );