Static

Protomaps: Self-hosting map tiles has gotten cheap and easy

First reported by Bruceroettgers.eu ·

The signal ●○○○ Compiled by AI from Bruceroettgers.eu and Hacker News
Why you might care

Self-hosting detailed global map tiles now costs less than $5 a month.

What happened

Bruce Röttgers' Protomaps project introduces PMTiles, a new map tile format designed for efficient self-hosting. The PMTiles format packages map data into a single file that supports HTTP Range requests, making it easily deployable to cloud storage buckets. This approach significantly reduces costs compared to commercial map API providers like Mapbox, which can charge up to $5 per 1,000 map loads after exhausting free tiers. Protomaps offers a CLI tool to customize map data by bounding box or zoom level, enabling smaller file sizes. Deployment on services like Bunny.net, which supports Range requests and offers low-cost storage and bandwidth, can result in costs as low as $5 per month for storing a 139GB world map. This self-hosted solution is presented as potentially 100 times cheaper than commercial alternatives for many use cases.

What it means

The PMTiles format democratizes map tile hosting by lowering the technical and financial barriers to entry. By packaging data into a single, portable file and leveraging HTTP Range requests, it allows developers to use cost-effective Content Delivery Networks (CDNs) and object storage services. This contrasts sharply with the traditional model of relying on expensive, proprietary map tile APIs, which often penalize high usage. The Protomaps ecosystem, including its CLI for data customization and the PMTiles format itself, empowers developers to control their map data infrastructure and scale without prohibitive per-request fees.

This development signals a potential shift towards decentralized and self-managed mapping solutions, particularly for applications that experience unpredictable or viral growth. Developers can now build and deploy custom maps with greater autonomy and predictable costs, making complex mapping features accessible for a wider range of projects. The ease of deployment and affordability suggest that applications previously constrained by map API budgets might now explore richer, more interactive map functionalities, potentially leading to innovation in geospatial web development.

AI-written summary. May contain errors.

Protomaps