r/openstreetmap • • 19d ago

Static maps API based on OSM data for developers

Hello dear OSMers, I would like to present to you a new project of mine: a static maps API based on data from OSM and a few more providers. If you are building an app and "where" matters, you can call my service with a simple URL like this https://api.wherebox.dev/v1/map.png?area=italy to get a map of Italy.

But this is just the beginning - there is way more parameters you can squeeze into URL so you can show e.g. neighbouring countries, points for your locations, routes or render the map in a different style (see Italy map with a dark preset). All options are captured in documentation.

The service is free to use (with generous fair use of 10K renders/month).

If you are developer, I would appreciate any feedback to it!

3 Upvotes

2 comments sorted by

2

u/[deleted] 16d ago

[removed] — view removed comment

1

u/agilek 16d ago

thanks, all four are covered:

- Retina: you can use scale=2 (w/h stay in CSS px).
- Caching: same request, same bytes. I kept the main URL at a day because data updates change pixels; set a longer edge TTL in your CDN if you want.
- Render 10,001 is hard stop now, no overage or bill. (cached maps keep working and never count.)
- bbox + ratio: bounds=w,s,e,n with w/h gives an exact-size card with the bbox fitted and centered. Just added an OG recipe to the docs.