maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] [Announce] Native offline maps: OSM Scout Server (https://talk.maemo.org/showthread.php?t=97823)

rinigus 2016-12-11 06:43

Re: 0.5.0
 
@karry - great work, thank you very much! This is surely a step in the right direction!


I have just published a new release: 0.5.0

This release addresses the GUI shortcoming highlighted by @Feathers McGraw:
  • its possible to specify units (Metric or Imperial). Since we use only km and mi., there is no need to separate british from american, as far as I understand
  • to select the map (and few other settings), you are shown directory or file selection dialog. Should work for SD cards as well.

Unfortunately, my changes break the Spanish translation in few places. Maybe we will get an update a bit later and I'll publish new point releases.

If there are some other requirements with GUI, let me know. For me, its OK and I am planning to focus on some aspects of the library. There were suggestions by @otsaloma that were given early on and I'd like to see what I can improve.

XOleg 2016-12-11 12:15

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus, I tested v.5 with Poor Maps.
- Great work, but it's not simple for ordinary user for this moment to import maps. NokiaMaps for N9 is good exemple for me.
- I need 2 districts - ural and volga. I haven't problem with ural-fed-district-latest.osm.pbf, but I don't see map after import from volga-fed-district-latest.osm.pbf(I configured path for server). And I see in folder 186.5MB instead 359.9MB for volga-fed-district-latest.osm.pbf. Or it's good?
- is it possible to navigate between 2 districts?

rinigus 2016-12-11 15:22

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1520362)
@rinigus, I tested v.5 with Poor Maps.
- Great work, but it's not simple for ordinary user for this moment to import maps. NokiaMaps for N9 is good exemple for me.
- I need 2 districts - ural and volga. I haven't problem with ural-fed-district-latest.osm.pbf, but I don't see map after import from volga-fed-district-latest.osm.pbf(I configured path for server). And I see in folder 186.5MB instead 359.9MB for volga-fed-district-latest.osm.pbf. Or it's good?
- is it possible to navigate between 2 districts?

Thank you!

Sure, import of the maps can be improved. As you could see from yesterday's post by @karry, he is working on it :) . See also earlier discussion between @karry and @MartinK on the subject. We could expect that the devices would be able to download maps directly from some server, but there maybe some time before it will be up and running.

So, at present, an ordinary user would have to download maps to PC, drag-and-drop them on importer tool, and transfer imported folders to device. I think its reasonably simple and, taking into account that @karry's work, there is no point in making fancy GUI on PC side of things.

Re Ural and Volga: I tried to import Volga district and it leads to 328MB folder. When moved to device, all worked fine. So, I think something went wrong during import or while you copied to the device. Note that you should have got all the files that you have for Ural, maybe something is missing. If the importer finishes with such small import, please tell me what OS do you use, importer version, and maybe you could also provide Importer output? Otherwise its hard to debug the issue.

Routing between 2 maps is not possible (yet). What you can do is to join the regions that you are interested in. Use OSM-provided tools for that, as explained at https://github.com/rinigus/osmscout-server#maps . In particular, look at https://wiki.openstreetmap.org/wiki/...lel_Processing

You may consider to reduce the maps to the part that you actually use using osmconvert.

karry 2016-12-11 15:59

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1520381)
Thank you!
... What you can do is to join the regions that you are interested in.

Btw, you can define more OSM (osm.pbf) files for one import. When they are overlapping, routing should be possible.

rinigus 2016-12-11 17:28

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by karry (Post 1520385)
Btw, you can define more OSM (osm.pbf) files for one import. When they are overlapping, routing should be possible.

@karry - thanks for a tip, didn't know that! Note that the import script that is distributed with pre-compiled importer is not aware of that. So, I don't think it would work with it and the included import executable would have to be called directly.

Feathers McGraw 2016-12-11 23:48

Re: 0.5.0
 
Quote:

Originally Posted by rinigus (Post 1520351)
@karry - great work, thank you very much! This is surely a step in the right direction!


I have just published a new release: 0.5.0

This release addresses the GUI shortcoming highlighted by @Feathers McGraw:
  • its possible to specify units (Metric or Imperial). Since we use only km and mi., there is no need to separate british from american, as far as I understand
  • to select the map (and few other settings), you are shown directory or file selection dialog. Should work for SD cards as well.

That was quick! Thank you very much for making those changes.

Since you seem to be on a roll, I noticed another thing the other day, when I was searching for pubs near my current location from within Poor Maps. No pubs were returned in the results despite there being several nearby, but there were a few public transport platforms in there for some reason...not sure if poor maps is requesting the wrong POI type, or if it's a server side thing? The map package was the one I created using the script as we discussed previously in this thread.

XOleg 2016-12-12 05:29

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus I understand there is no other way for this moment.

volga. It's not problem with copy from PC to phone. I use ubuntu 16.04 and last importer. I'll try to send Importer output, but how to do it? to get from terminal(it's long) and send after that.
Thanks for help.

P.S. It's not simple to replay by SfOS from phone :-)

rinigus 2016-12-12 07:26

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by XOleg (Post 1520427)
@rinigus I understand there is no other way for this moment.

volga. It's not problem with copy from PC to phone. I use ubuntu 16.04 and last importer. I'll try to send Importer output, but how to do it? to get from terminal(it's long) and send after that.
Thanks for help.

P.S. It's not simple to replay by SfOS from phone :-)

Great, Linux makes it all easer for me. I would suggest to run importer again and see

du -sh volga-fed-district

For me it resulted in 328MB.

You could copy the output and paste it into https://ptpb.pw/f . For that, go to that web-site, copy your text into the large text box (central), set the expiry date (bottom right) for ~week from now, and press paste. As a result, you will get a light blue box with "status: created". Click on "created" and send me the URL via this forum. Then we can see whether import was fine.

Is it possible that you run out of storage? RAM is also an option, how much do you have in Ubuntu?

rinigus 2016-12-12 07:37

Re: 0.5.0
 
Quote:

Originally Posted by Feathers McGraw (Post 1520420)
That was quick! Thank you very much for making those changes.

Since you seem to be on a roll, I noticed another thing the other day, when I was searching for pubs near my current location from within Poor Maps. No pubs were returned in the results despite there being several nearby, but there were a few public transport platforms in there for some reason...not sure if poor maps is requesting the wrong POI type, or if it's a server side thing? The map package was the one I created using the script as we discussed previously in this thread.

Thanks!

Its surely not Poor Maps issue. The problem could be either the wrong POI type or absence of the pubs nearby.

To see the available types, use the URL given https://github.com/rinigus/osmscout-...able-poi-types . For that, start the server and visit

http://localhost:8553/v1/poi_types

in the browser. [There is no better way right now]. When you look for nearby POIs, you are searching for objects which are within the given distance (with some precision) and are of the corresponding type. The type comparison is done by lowercasing the type you enter and assuming that you entered a substring of a type.

If the type was correct and pubs are still missing, try to do the same search in Poor Maps using some other search provider. You could also go to http://www.openstreetmap.org and see if you can find the pubs over there. Try to figure out what type they are and see if you could find them.

Let me know. If something is wrong and you see all these pubs in OSM, we would debug it further. Then I would need an example of a missing pub :)

XOleg 2016-12-12 08:30

Re: [Announce] Native offline maps: OSM Scout Server
 
@rinigus I'll do this slightly later.

RAM = 8 GB. I don't see warning "out of space".


All times are GMT. The time now is 07:26.

vBulletin® Version 3.8.8