by motoroco · 2w ago · 0 comments
the fun/hard parts of the project weren't really scale dependent, although downloading source imagery and building the tile pyramids did take literally weeks to run. actually, the hardest part was getting demosaicing right, e.g. making the quilt seamless. filtering out cloudy and smokey/hazy tiles while picking alternatives from the same time of year so groundcover & crops are in a consistent growth stage so you don't end up with checkerboard patterns or cloud silhouettes randomly across your map. and there were other problems that came up more or less just because of how & when the satellite took the images that require exposure correction and more filtering
I also have a pelias index with 170M records for search and self-host valhalla for routing. the open source mapping ecosystem has really impressed me the more I learn with each project
Here is a commercial one: https://cloudless.eox.at/preview#map=14.00/-80.77673438/-33....
I really like their data set. For self hosting, vector map tiles are small enough that storing it in a bucket won't break the bank. I think you need somewhere around 100-150GB or so for protomaps. A few dollars per month goes a long way. However Mapterhorn's elevation data set is something like 11 TB or so. That's going to cost some money to store somewhere. Satellite imagery is similarly expensive to host. And you typically want both.
There is of course an asymmetric relation with what you store and what you serve. Ideally, you store data for the whole planet. But you probably are only going to serve a tiny portion of it. This favors hosted setups where you pay for what you use via a CDN and share the storage with others. A shared service also relieves you from the burden of having to keep that data up to date. The main issue with that is commercial map services tend to overcharge for more intensive usage to the point where self hosting actually becomes attractive despite this.
The main issue is that the number of requests really goes through the roof if you start getting tiles beyond certain zoom levels, which pushes you into the expensive price tiers. With most providers you pay per request and you can easily generate hundreds of thousands of requests just panning around at low altitude over a map, which means you download lots of small tiles. That's how we hit the Maptiler limits. They have high resolution elevation data and exploring the Alps is a lot of fun. We hit 800K requests per day without any real users using our system even. This was just us playing with the data. We switched to Mapterhorn and cap the zoom level at zl-12 for now. Since it's a free service I want to be a bit mindful of not hammering their service.
I'd be interested in reasonable commercial solutions that won't cost me 300+$ per month that would allow me to remove zoom level limitations. At those price levels, self hosting becomes a possibility of course. Which suggests to me that somebody should be able to undercut that price and still make a decent profit.