![]() |
Re: [Announce] Native offline maps: OSM Scout Server
Holy Moly, thanks for this really detailed explanations!
Of course it would be nice if maps would render faster, but anyway its so nice to have finally native offline maps! |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
That should hopefully not be an issue soon as I plan to release updated modRana packages today or tomorrow. :) Quote:
Quote:
Quote:
Some heuristic can be applied for this to run all further queries after a hit on the same data pack until there is another miss. Users could also enable just some packs in the OSM Scout Server UI to reduce the number of lookups. Also a related idea - client side pack specification. OSM Scout Server clients could specify data pack name for the lookup. They could get the available pack names either from OSM Scout Server via a special query or by other means (listing all folders the OSM Scout Server data folder or even by downloading data packs themselves and pointing OSM scout to them). Just a couple of ideas. :) Quote:
BTW, a naive idea how inter pack routing might be done: :) 0. assuming two adjacent packs with a relatively straight border between them & some overlap + simple start-destination routing 1. draw a straight line from start to destination 2. note where it intersects the border 3. search for suitable (way) nodes around the intersection points in both map-packs 4. find a node near the border that is in both packs 5. compute two routes: start - shared border node, shared border node - destination 6. return combined route as the result This is of course very simplified and would probably returns some pretty inefficient routes. It also does not handle complex border geometries, routes over multiple packs, non overlapping packs or having only packs that have no shared border at all. :) Again - just a couple of ideas. :) |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
I am pretty confident that this is a reason for significant slow-down. We just have to wait 1-2 days to test it :) Quote:
Server renders the map in as many threads as you have CPUs. For that, it actually shares database access. If we want to render in parallel, we may end up having the same number of databases open. I think this may end up with too much RAM consumed by the server. So, we could start writing in some logic and lock/unlock threads depending on the accessed databases. Its all possible, but not trivial. Alternative is to limit to a single thread and render one tile in a time. This may slow down it too much taking into account that the mobile devices may start lowering CPU frequency and switching off some cores when the load is about 1. We can return to it a bit later. Maybe Lukas will implement it that way that it will be exposed via libosmscout anyway :-). Ideally, it would be solved on the library level and all applications using the library would benefit from it (server included). We can try to formulate it as an issue and see when and how to resolve it. Quote:
I would suggest to get other issues solved first: better GUI, search, rendering, and routing come up into my mind on server side. Better routing support on the client part (voice commands?). Quote:
Quote:
|
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
Quote:
I might be even able to arrange something with the Masaryk University NLP lab which is already kindly hosting the 100+ GB of Monav offline routing data modRana can make use of (currently mainly on the N900). But at the moment people might even have to re-generate their data files even due to am OSM Scout Server updates due to using a newer version of libosmscout. Does it look like there might also be a solution for this issue ? I understand designing and supporting an unchanging binary data format is no easy task for libosmscout developers. But at the same time I'm afraid the current unstable-data format can block many users from using OSM Scout Server & client apps - especially less advanced users who could make use of pre-generated map data. Quote:
Quote:
|
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
To offset the map format changes I worked on the importers. Hopefully, it would be of help for users. Its great that you have such a host - it could really become handy. Note that the maps do have to be regenerated relatively frequently. I presume that once a month should be a target. And then we would have to see how to split the maps - countries, regions, ... Maybe you should get in touch with Lukas. He was working on getting maps distributed via downloads and he may be interested in expanding on that part of the project. But the supply of the maps to the users is, indeed, a major problem that we would have to resolve. |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
Quote:
Quote:
Quote:
BTW, the software used to generate the repository lives in the modrana-data-repository repository and it should not be that hard to extend it to generate also libosmscout-compatible data once the format is considered stable enough. :) Quote:
|
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
|
Re: [Announce] Native offline maps: OSM Scout Server
Hi all. I read this thread completely and I have to say thanks to all developers for your work and to all people who test our applications!
@rinigus you should consider to submit server to Coding Competition :-) There are some interesting prices like Jolla C. Other apps are welcome too! To map distribution, I just recap what I send to libosmscout mailing list: server part for OSM Scout is ready, scripts are available here. I host it on Rasperry PI with 1 TiB disk dedicated for maps. It is dwarf to compare to your machine @MartinK :-) I will focus on client side next days/weeks. It will be available for osmscout server too off course. When everything will be ready, we can start working on map delivery network (MDN ?). What is university status to your server Martin. It is officially supported or it is tolerated "punk activity"? |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
Quote:
I will of course first ask them if they are OK with generating & hosting another data set, but I kinda expect it should not be an issue. In comparison to some of the corpus processing they do our data sets are very very small. :) |
Re: [Announce] Native offline maps: OSM Scout Server
Map downloader is ready for merge to upstream library: https://github.com/Framstag/libosmscout/pull/185
Now, Silica UI... |
All times are GMT. The time now is 22:16. |
vBulletin® Version 3.8.8