Live data from Hacker News

Host your own OpenStreetMap Map Tiles

altilunium.my.id

21–30 of 45 posts

Re: Host your own OpenStreetMap Map Tiles

#22

Thanks for sharing this! I have a hobby project that has hit the paid tier of my tileserver (thunderforest, and they're great) and I'm trying to figure out if I should be figuring out a business model or DIY'ing my tiles. Tileservers see to be expensive in general.

I had the same issue and was considering setting up my own tileserver. Fortunately I found www.tracestrack.com. Much less expensive that other options I considered and service has been good so far.

Re: Host your own OpenStreetMap Map Tiles

#23
post #21

Related concept (recently submitted to HN) https://github.com/headwaymaps/headway

Does this do basically the thing as osmand on phones? Why the relatively huge requirements of 64G of ram and 10T of nvme?

Thats to build the server, any you are basically building the data for hosting approximately Google Maps for the entire planet here so seems relatively small really.

It’ll do it on what is basically a beefy dev machine. You can host a single city with less.

Also the requirements are for build not hosting. And can be reduced by using ZFS. Apparently.

To use the map in the browser requires nothing special.

Re: Host your own OpenStreetMap Map Tiles

#25
There is a project called Peermaps that is building a full P2P stack for OSM-based maps:

They convert Planet OSM and Natural Earth OSM dumps into the storage format used by their geospatial DB [1] and then distribute them using P2P file storage tools like IPFS [3] or hyperdrive [4].

Because those storage tools make use of content addressing [5] and clever chunking [6], you can download only changes to the (converted) OSM dump.

Because those tools are inherently P2P-focused and come with pluggable transports, the data representing the changes in the (converted) OSM dump don't have to be sent via the internet. For example, Mapeo [7] allows syncing "local" changes to OSM via USB sticks [8].

[1] https://github.com/peermaps/eyros [2] https://github.com/peermaps/data [3] https://ipfs.io/#why [4] https://hypercore-protocol.org/guides/modules/hyperdrive/ [5] https://docs.ipfs.tech/concepts/how-ipfs-works/#content-addr... [6] https://blog.gopheracademy.com/advent-2018/split-data-with-c... [7] https://www.digital-democracy.org/mapeo/ [8] https://docs.mapeo.app/complete-reference-guide/mapeo-deskto...

Re: Host your own OpenStreetMap Map Tiles

#26
Is there a good way to host tiles for only a small part of the world? I have some apps that are only useful in my county - so I would like to have very detailed tiles for areas in my county, but there's no reason for me to generate or serve street-level tiles for somewhere in California or Tokyo or wherever.

Because it's hard to lock down tile servers for public-facing apps, I have always been a bit nervous putting anything online in case someone swipes my key and uses it and one morning I wake up to a huge bill.

Re: Host your own OpenStreetMap Map Tiles

#27

Is there a good way to host tiles for only a small part of the world? I have some apps that are only useful in my county - so I would like to have very detailed tiles for areas in my county, but there's no reason for me to generate or serve street-level tiles for somewhere in California or Tokyo or wherever. Because it's hard to lock down tile servers for public-facing apps, I have always been a bit nervous putting a…

Few things are easier! This is a piece of cake with https://github.com/onthegomap/planetiler#to-build-the-map

Re: Host your own OpenStreetMap Map Tiles

#28
post #21

Earlier quoted context omitted.

Does this do basically the thing as osmand on phones? Why the relatively huge requirements of 64G of ram and 10T of nvme?

Thats to build the server, any you are basically building the data for hosting approximately Google Maps for the entire planet here so seems relatively small really. It’ll do it on what is basically a beefy dev machine. You can host a single city with less. Also the requirements are for build not hosting. And can be reduced by using ZFS. Apparently. To use the map in the browser requires nothing special.

But using it in a browser presumably downloads image tiles from the server.

Osmand downloads vector data and renders it on the fly. It's both the "server" and the "client".

Re: Host your own OpenStreetMap Map Tiles

#29

Is there a good way to host tiles for only a small part of the world? I have some apps that are only useful in my county - so I would like to have very detailed tiles for areas in my county, but there's no reason for me to generate or serve street-level tiles for somewhere in California or Tokyo or wherever. Because it's hard to lock down tile servers for public-facing apps, I have always been a bit nervous putting a…

https://protomaps.com/ by u/bdon might be relevant
Post reply on HN