Editing Ovi Maps Offline Search

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 12: Line 12:
This will search for "google" near a specific latitude and longitude and return back an xml page (url modified slightly so as to not put up personal address).
This will search for "google" near a specific latitude and longitude and return back an xml page (url modified slightly so as to not put up personal address).
-
By modifying the "<code>index.html</code>" code found in "<code>/usr/share/nokia-maps/html</code>", and changing the search url from "<code>http://where.s2g.gate5.de/nsp?db=places</code>" to a personal server running at "http://127.0.0.1:9999" (eg: http://maemo.org/packages/view/omvoiceserver/), all search requests can be captured. The application then can either send the request on to the Nokia server and retrieve the xml, before passing it back to Ovi maps (ie it still uses the internet but only logs the search query), or it can perform its own search and create its own xml page (thereby not requiring the Nokia server, therefore offline search).
+
By modifying the "index.html" code found in "/usr/share/nokia-maps/html", and changing the search url from "http://where.s2g.gate5.de/nsp?db=places" to a personal server created in Qt running at "http://127.0.0.1:9999" (eg: http://maemo.org/packages/view/omvoiceserver/), all search requests can be captured. The application then can either send the request on to the Nokia server and retrieve the xml, before passing it back to Ovi maps (ie it still uses the internet but only logs the search query), or it can perform its own search and create its own xml page (thereby not requiring the Nokia server, therefore offline search).
To create its own xml page, the application will need to read some form of database and retrieve a few items based on the search query.
To create its own xml page, the application will need to read some form of database and retrieve a few items based on the search query.
Line 23: Line 23:
If Nokia's own map data can be used to do the search, it would mean much more accurate results, less space consumed as there would be no need for an extra database, and less work required to make databases for all countries.
If Nokia's own map data can be used to do the search, it would mean much more accurate results, less space consumed as there would be no need for an extra database, and less work required to make databases for all countries.
-
Currently its not understood how the database can be accessed to retrieve information required to make the xml page of results. The folder "<code>/home/user/MyDocs/cities/diskcache/ClientIndex</code>" contains 3 files that appear to be databases of some sort, however its unknown what type, and therefore cannot be opened.
+
Currently its not understood how the database can be accessed to retrieve information required to make the xml page of results. The folder "/home/user/MyDocs/cities/diskcache/ClientIndex" contains 3 files that appear to be databases of some sort, however its unknown what type, and therefore cannot be opened.
-
 
+
-
[[Category:N900]]
+

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)