Bug 230258

Summary: [Patch] Use OSM's Nominatim in an advanced location search dialog
Product: [Applications] marble Reporter: Colin Marquardt <kde>
Component: generalAssignee: marble-bugs
Status: RESOLVED FIXED    
Severity: wishlist CC: nienhueser
Priority: NOR    
Version: unspecified   
Target Milestone: 0.8 (KDE 4.3)   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: marble-nominatim-runner.diff

Description Colin Marquardt 2010-03-10 22:40:24 UTC
Version:            (using KDE 4.3.5)
OS:                Linux
Installed from:    Ubuntu Packages

OpenStreetMap has gotten a nice location search engine, Nominatim (http://nominatim.openstreetmap.org/). 
It also has a reverse geocoder.

It could be offered in an advanced search dialog. If you decide to do that, please read http://wiki.openstreetmap.org/wiki/Nominatim#Usage_Policy though :)
Comment 1 Dennis Nienhüser 2010-03-10 22:59:28 UTC
Results seem to be better than the ones from gazetteer.openstreetmap.org which is currently used as a runner in marble. Nominatim looks like a good runner candidate to complement or replace gazetteer.
Reverse geocoding would be useful for the routing application as well.
Comment 2 Dennis Nienhüser 2010-03-11 21:41:17 UTC
Created attachment 41542 [details]
marble-nominatim-runner.diff

This adds a MarbleRunner which is used alongside the other runners to retrieve placemarks for search terms.

We need to talk to the osm people about the usage policy (see http://wiki.openstreetmap.org/wiki/Nominatim email address in user agent and time limits) before it can be committed.
Comment 3 Dennis Nienhüser 2010-03-12 22:11:06 UTC
Got a nice reply from the nominatim author: The user agent is fine and the time restriction only meant for bulk downloads, which we do not do. Therefore we can add and use it like this.
Comment 4 Dennis Nienhüser 2010-03-12 22:38:35 UTC
SVN commit 1102568 by nienhueser:

Add Openstreetmap nominatim runner. Make common userAgent method available in TinyWebBrowser, used by HttpJob and OsmNominatimRunner.
BUG: 230258

 M  +1 -0      CMakeLists.txt  
 M  +4 -7      HttpJob.cpp  
 M  +9 -1      MarbleRunnerManager.cpp  
 M  +8 -0      TinyWebBrowser.cpp  
 M  +2 -0      TinyWebBrowser.h  
 A             runners/OsmNominatimRunner.cpp   [License: LGPL]
 A             runners/OsmNominatimRunner.h   [License: LGPL]


WebSVN link: http://websvn.kde.org/?view=rev&revision=1102568