[Marble-commits] KDE/kdeedu/marble/src/plugins/runner/nominatim
Dennis Nienhüser
earthwings at gentoo.org
Tue Aug 10 20:39:29 CEST 2010
SVN commit 1161746 by nienhueser:
Extract country info as well in reverse geocoding.
M +2 -1 OsmNominatimRunner.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/runner/nominatim/OsmNominatimRunner.cpp #1161745:1161746
@@ -72,7 +72,7 @@
void OsmNominatimRunner::reverseGeocoding( const GeoDataCoordinates &coordinates )
{
m_coordinates = coordinates;
- QString base = "http://nominatim.openstreetmap.org/reverse?format=xml&addressdetails=0";
+ QString base = "http://nominatim.openstreetmap.org/reverse?format=xml&addressdetails=1";
// @todo: Alternative URI with addressdetails=1 could be used for shorther placemark name
QString query = "&lon=%1&lat=%2&accept-language=%3";
double lon = coordinates.longitude( GeoDataCoordinates::Degree );
@@ -151,6 +151,7 @@
addData( details, "county", &extendedData );
addData( details, "state", &extendedData );
addData( details, "postcode", &extendedData );
+ addData( details, "country", &extendedData );
placemark.setExtendedData( extendedData );
}
More information about the Marble-commits
mailing list