Live data from Hacker News

Protomaps – A free and open source map of the world

protomaps.com

141–150 of 169 posts

Re: Protomaps – A free and open source map of the world

#141

Earlier quoted context omitted.

are the torrents in the wild that uses this? and are there bittorrent clients that implement this? how do they surface the mutable aspect to the user? (is it like, your torrent client will silently update files, and if you dont want to update anymore you need to pause? can you still seed if you dont want to update?)

You can't modify files, because torrent file itself is just sequence of chechsums. But there is RSS extension that allpo to pipe updates of new files.

But with BEP-46 you can, right? (BEP-46 apparently doesn't use RSS)

I was asking like, how widely is BEP-46 adopted in practice. It's a spec from 2016!

https://www.bittorrent.org/beps/bep_0046.html (discussion on HN at the time, https://news.ycombinator.com/item?id=12282601)

Re: Protomaps – A free and open source map of the world

#142

Earlier quoted context omitted.

are the torrents in the wild that uses this? and are there bittorrent clients that implement this? how do they surface the mutable aspect to the user? (is it like, your torrent client will silently update files, and if you dont want to update anymore you need to pause? can you still seed if you dont want to update?)

I've been testing a setup that automatically generates OpenStreetMap/OpenMapTiles formatted pmtiles and mbtiles, then makes them available by torrent. The torrents get placed in a rss feed at https://planetgen.wifidb.net/ Basically what I did was set up 'qbittorent' client to watch the openstreetmap rss weekly torrent feed. when it downloads a new pbf file, it runs this script I made at https://github.com/acalcutt/Pl…

That's interesting. But it doesn't use BEP-46, right?

https://www.bittorrent.org/beps/bep_0046.html (discussion on HN at the time, https://news.ycombinator.com/item?id=12282601)

Re: Protomaps – A free and open source map of the world

#143
post #70

Maybe I am overlooking something, but where does Protomaps get its data? Also, is the data open source? The FAQ says the code, etc. is open source, but doesn't mention data: > Is Protomaps open source? / Yes! All core software libraries and formats are open source under permissive licenses, including: ...

It's OpenStreetMap (ODbL) and Natural Earth (public domain) currently * http://openstreetmap.org * http://naturalearthdata.com

What does naturalearth have that OSM doesn't? I checked the site and it's showing what looks like a subset of OSM

Re: Protomaps – A free and open source map of the world

#144

Earlier quoted context omitted.

are the torrents in the wild that uses this? and are there bittorrent clients that implement this? how do they surface the mutable aspect to the user? (is it like, your torrent client will silently update files, and if you dont want to update anymore you need to pause? can you still seed if you dont want to update?)

I use it in anacrolix/btlink. There's support in anacrolix/dht.

That's very cool!

Does this serve decentralized "web app" through bittorrent?

Do I need your client to seed it, or can something like qbittorrent seed it?

Will I seed only the last version of the page or all versions? Can someone download an earlier version or list all past versions?

Re: Protomaps – A free and open source map of the world

#145
post #91
post #79

Earlier quoted context omitted.

Mapbox is still the best choice where a polished suite of mapping APIs is a better fit for a project. Mapbox is a venture-backed company with a SaaS business model, and has never been open source in total - it used to be open core with a FOSS frontend and proprietary backend. This SaaS model is absolutely the best way to fund huge companies and give investors a return. Mapbox has also done the bulk of innovation in o…

> The ideal software economy is one in which innovators capture a good portion of the wealth they create. Beg to differ, the ideal software economies maximally empowers end-users at the absolute minimal cost. Innovators can and should leave substantial cash on the table. They should see themselves as stewards of a public good.

I agree in principle but being a steward doesn't put food on the table

Re: Protomaps – A free and open source map of the world

#147
post #128

Earlier quoted context omitted.

Thank you we forked your repo! What makes you say SVG is kind-of terrible for maps?

Thanks! Well, mostly that it's text / XML you usually have to parse in full and boundaries are data heavy, so if you have anything more than a world map, I don't see that working very well. In contrast with the OP or GeoPackage, you can query by tiles/range and only extract the boundaries you need if you're zoomed in somewhere. If you use Tiny Well-Known Binary compression, you can also shrink the data quite a bit wh…

Thank you for that! I love your analysis. Really appreciate you teaching me more about this. :)

Re: Protomaps – A free and open source map of the world

#148

Earlier quoted context omitted.

I'm a total noob to all this, so I totally get if you can't help--it's not your problem, no worries! But would you be able to share any code to convert this, or any of the data?

I can't share this data, but there are a couple of ways to get started: 1) Just use the overview tiles from the global protomaps dump (OSM source). The getting started guide can walk you through some of it: https://docs.protomaps.com/guide/getting-started but you'd want to use the pmtiles tool to extract the widest zooms from the global dataset. pmtiles extract https://build.protomaps.com/20231023.pmtiles overview.pm…

Thank you! No worries at all, I totally understand. Just thank you for replying!

I really appreciate you showing me how to do that. Thank you very much!

Re: Protomaps – A free and open source map of the world

#149
post #110

I really wish there was a PMTile implementation for MapLibreGL Native like there is for the JS side (I believe the JS side actually has a way to add arbitrary data protocols). Of course I could stand up some sort of worker or function to sit in the middle, but having this all work client side on Android and iOS would be a game changer for me!

Can’t really include 100gb of maps with your app though. How would you use it?

You download it within the app. Or drop it into iCloud and tell the app where to find it. I have 200 gigs of offlined map data my phone with a custom native map app.

Not a big deal with terabyte storage on mobile these days.

Re: Protomaps – A free and open source map of the world

#150
post #143
post #70

Earlier quoted context omitted.

It's OpenStreetMap (ODbL) and Natural Earth (public domain) currently * http://openstreetmap.org * http://naturalearthdata.com

What does naturalearth have that OSM doesn't? I checked the site and it's showing what looks like a subset of OSM

Natural Earth is generalized (low zoom) data and has hand-curated scaleranks on features to determine what features appear at low zooms. None of that is in OSM.
Post reply on HN