Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Looks like a nice offering. For those interested in an even more self-service style option -- check out https://github.com/onthegomap/planetiler. Spin up a high-memory spot instance on your favorite cloud provider, run a command, let it run a few hours, and now you've got a complete tileset for the planet at the cost of a couple of bucks. I'm not affiliated but I've been using it for my own project (http://www.lumathon.com/map) and I've been very happy.
The stack I describe in the post is only for map tiles - Map tiles are a good fit for CDNs because the input space is small (just Z/X/Y coordinates on a square grid) and thus very cacheable.
Geocoding is a very different problem because the input space - human language - is much, much larger, and answering queries quickly to support features like autocomplete really requires a server with hot data in memory.
One of my favorite projects in this space is Pelias https://pelias.io which is an open source auto-completing geocoder based on OSM plus other open data. It's backed by a great team that also runs a business: Geocode Earth https://geocode.earth
* It is designed for remote HTTP range reads. If your application can instead directly access a filesytem, like on a mobile phone, MBTiles, which uses SQLite, is a more established solution.
The specification is open source on GitHub https://github.com/protomaps/PMTiles and is still evolving in response to user needs. I've created direct client support for Leaflet and MapLibre, and plan to work on OpenLayers next.
Related posts
- Turbocharge your Lambda Functions with AWS Lambda Powertools for Python
- I fine-tuned my model on a new programming language. You can do it too! 🚀
- I asked 100 devs why they aren't shipping faster. Here's what I learned
- Serverless Postgres with Neon - My first impression
- 🚀 A Comprehensive Guide to Personalizing Your GitHub Profile README