Live data from Hacker News

Host your own OpenStreetMap Map Tiles

altilunium.my.id

41–45 of 45 posts

Re: Host your own OpenStreetMap Map Tiles

#41

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…

I wonder if you could do this for almost free with Cloudflare in front of B2…

Re: Host your own OpenStreetMap Map Tiles

#42
post #28

Earlier quoted context omitted.

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".

The beefy server part is for taking the gigantic OSM world database and turning it into vector data that can be consumed by the client. I believe Osmand runs their own beefy servers to pregenerate vector data for download, though it’s also possible to use Osmand Map Creator to generate your own vector data on your desktop.

Re: Host your own OpenStreetMap Map Tiles

#43
post #41

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…

I wonder if you could do this for almost free with Cloudflare in front of B2…

With PMTiles that's very likely to come in at close to free.

Re: Host your own OpenStreetMap Map Tiles

#44
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?

Headway maintainer here. You don't need 10T of nvme storage unless you want to try and build tiles, a routing graph and a search index for the full planet without using a deduplicated filesystem. Eventually I hope to eliminate the need for deduplication but that's not currently a huge priority, since most Headway users don't run full-planet instances anyway. To my knowledge I'm the only one who does. Most people just run a smaller instance for their city.

It's not the same as OsmAnd obviously because it runs in the browser but it does try to fill the same niche. Also 64G of RAM for building the planet is a tiny machine! We don't know how good we have it these days. This used to be completely intractable for mere mortals. :)

Re: Host your own OpenStreetMap Map Tiles

#45

That's vector tiles, right? I'm still looking for an easy-ish way to render and host the old style of pixel tiles. Does anyone here have good pointers for that?

This very much depends on your use case. I recently did the planet for zoom level 12 as I mentioned elsewhere on this article. I can go into details if you're interested.
Post reply on HN