libera/#maemo-leste/ Wednesday, 2022-06-15

norayrbuZz, i have written an irc bot in oberon, which remembers last 100 (or n) messages, and can tell when asked privaterly what was going on. it was for the oberon irc room. then it was invited to a couple of channels (i had no courage to bring him to live there myself) .12:38
norayri worked with osm api, but not exactly. there was a web service that would render the tiles and give you the tiles by web request.12:40
norayrwhole world is very easy ho get because the tiles had zoom levels12:40
norayrand at zoom level zero you can fit the world in one or several (dont remember) tiles, each a couple of kbs.12:41
norayri think for my program i was usinc tiles at zoom level 18.12:41
norayrthat service is not available now, but i guess it was also possible to selfhost the renderer.12:42
norayranyway i missed, why are you talking about osm api? the only place maemo (the system, the desktop environment)  used the map was in the locale and time settings.12:43
buZznorayr: imho, best OSM experience is from a vector map stored on device13:35
buZzthere's a bunch of map/gps applications in leste already, afaik most just download tiles13:35
norayrbuZz, and vector maps take much less space.13:51
freemangordonbut, how often shall we re-download?13:52
freemangordonalso, how much cpu we need to render every time we need a tile?13:52
norayrmy understanding is that you decide.13:52
freemangordonwho is 'you'?13:53
freemangordonimagine maemo location applet13:53
norayrwith tiles it was like you were setting up the timeout for yourself. you, the author of the program, i have no idea what are you doing. but i was deciding how long my cache is valid.13:53
norayrbut with vector maps, probably there are snapshots, and it is possible to check13:53
norayrif there is a new snapshot13:53
freemangordonyou turn it on, and it asks maps provider (dbus service) for tiles13:54
norayrwith tiles, it might be possible to check if http header of the tile changed, reports other size.13:54
freemangordonwait, you said everything is on-device13:54
norayri? (:13:54
uvoswith vector mapps you can also just update changed vectors13:54
uvososmand dose this13:54
freemangordonwell, you agreed13:54
uvosthis ofc is the most efficant way possible13:55
freemangordonok, but in order to render we must have mapnik or sleepi-maps or whatever renederer on-device, no?13:55
norayrvector maps on device take less space, but... let's say if you want to keep whole germany in tiles of all sizes vs germany in vector, vector is much much smaller.13:56
norayrbut if you just need to download a couple of tiles for a backyard of your house, then a couple of tiles of fixed size are smaller than vector archive of country.13:56
freemangordonnorayr: I understand that vector maps are smaller, the point is - what we do if we want to show a map?13:56
uvosfreemangordon: sure yes13:56
uvosso?13:56
freemangordonthat seems overkill to me13:56
norayrwhich zoom level do you want the map to show?13:57
freemangordonthis will pull the repo and the kitchen sink I am afraid13:57
norayryou just show it on a world map? or on a level of city?13:57
freemangordonnorayr: depends13:57
freemangordonnorayr: do you know location home applet?13:57
norayrthat's the problem, i don't remember it, probably never used.13:57
freemangordonthe level of details shown depends on gps lock accuracy13:58
freemangordonso variable zoom13:58
norayri only remember settings applett and probably same during first boot when it asked for locale and i had to point it on the map.13:58
freemangordonno, this is different thing13:58
norayrbut did it download tiles?13:59
freemangordonit has nothing to do with gps or map, besides world map13:59
freemangordon'world map image"13:59
norayror did it ask which country the user wants to download vector info for?13:59
freemangordonit does not wokr like thta13:59
norayrjust my understanding is that 'world map' image can be one tile at zoom level zero.13:59
norayrthen can be like 6 tiles at the zoom level, don't remember which, let's say 4.14:00
freemangordonapplication asks provider: "give me a map with area x1,y1,x2,y2 on zoom level z"14:00
norayrand at the zoom level 18 the city tiles will take more space than the vector of the whole country.14:00
freemangordonthis has nothing to do with country, city or whatever14:00
norayrokay, cool. yes that should be possible, but then you download tiles, and it requires internet.14:01
freemangordonyes, exactly14:01
uvosthis api also has another fatal flaw14:01
bencohfreemangordon: actually iirc the application fetches tiles in an explicit fashion from the provider repository14:01
freemangordonyes14:01
freemangordonand caches them14:01
freemangordonno, it is not the application14:01
* bencoh nods14:01
bencohuh?14:01
freemangordonit is the provider ;)14:01
norayrfreemangordon, so regarding the cache, the application decides when to invalidate it.14:01
freemangordon"application" is home applet14:02
freemangordonand it uses libnavigation14:02
bencohaah, I see, nevermind then :)14:02
norayryou can just hardcode one week. otherwise maybe it's possible to get the size of the tile via http header, and if it changed, then to redownload.14:02
freemangordonlibnavigatin just calls dbus provider14:02
norayrtheoretically it can be changed, but the size may remain the same, but not likely with jpegs.14:02
freemangordonand provider is the one that does whatever needed to serve the request14:02
freemangordonuvos: like what?14:03
bencohyeah, I missed the fact that you were talking about maemo integration (not how the 3rd-party map apps work)14:03
freemangordon:nod:14:03
norayrsomebody please port mappero to leste. it is too tough work for me.14:03
norayrbut i loved it.14:03
freemangordonuvos: could you elaborate on the flow you think this API has?14:04
freemangordon*flaw14:04
buZzfreemangordon: its so small the vector, a full vector OSM dump of whole Netherlands is ~1GB14:16
bencohhow much is it for the tile version?14:47
freemangordonI wonder if this is s good choice17:00
freemangordonlike, get the vector data and render it on device17:00
bencohon n900? definitely not17:00
freemangordonthis https://github.com/rahra/smrender17:00
freemangordonmaybe it is not that resource-intensive17:01

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!