Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For businesses who don't want to self-host maps, but still want to migrate away from Google Maps (or other major cloud providers' offerings), there's quite a few options (full disclosure, I run one of them):

- https://mapbox.com

- https://stadiamaps.com

- https://maptiler.com

- https://jawg.io

- https://thunderforest.com

- https://locationiq.com



As a solution in between, for those who want to include a OSM map on their website but don't want to put load on the official OSM tile servers, a simple tile proxy may be a good idea.

I am using something based on https://wiki.openstreetmap.org/wiki/ProxySimplePHP5 for a long time already and since I don't need to have up to date tiles every day, I set the TTL to a few weeks.

Together with leaflet this works beautifully.


Out of curiosity, what’s the motivation to error suppress the mkdir call here (my PHP is rusty)? Anyway, this is great. Thank you for sharing!


It returns an error if the directory already exists (same as in Python)


While we're on the topic, in Python there's a nice way to deal with this:

os.makedirs(path, exist_ok=True)


For sure! There's a lot of in-between solutions (depending on what services/regions/update frequency you need).


Ex mapbox customer and power user here. They became pretty terrible after being pretty amazing five years ago.


I'd love to hear your thoughts directly on this one. They're a primary competitor, and we would be happy to learn how to better serve your needs! (Email in bio.)


happy Stadia maps customer here! Good prices and solid service.


Thanks, Durkie! :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: