News for hackers. Stuff that matters.
Re:Maps.earth – free and open-source web maps by shafyy on Monday August 22, 2022 @12:05PM (#32553402)
Hey, this looks great, thanks for working on it! I'm the creator of Mapzy[0], an open-source and self-hostable store finder. We're trying to focus on privacy as much as possible, but currently use Mapbox since it's better than Google Maps and we didn't find any other alternatives.

Do you think Headway could be a replacement for us? We currently use the Mapbox JS library to create the pins etc. - could we use Headway with Leaflet JS for example? We also use the Mapbox geocoder, mainly for reverse geocoding of addresses. How does Headway's geocoder compare?

0: https://github.com/mapzy/mapzy/

Re:Maps.earth – free and open-source web maps by jutaz on Monday August 22, 2022 @04:40PM (#32556909)
I’d recommend taking a look at Maplibre GL JS[0], which is a fully open source map library. It was forked from Mapbox GL JS just before licence change, therefore it’s also fully compatible with the style spec etc.

It’s also actively maintained and has a strong community behind it.

0: https://github.com/maplibre/maplibre-gl-js

Re:Maps.earth – free and open-source web maps by twelvechairs on Monday August 22, 2022 @07:52PM (#32558832)
If you are in this space deck.gl [0] is well worth cehcking out. It does scale at speed, 3d (more kinds), motion and effects extremely well.

[0] https://deck.gl/

Re:Maps.earth – free and open-source web maps by shafyy on Tuesday August 23, 2022 @02:57AM (#32561369)
Thanks, I'll check it out!
Re:Maps.earth – free and open-source web maps by ellenhp on Monday August 22, 2022 @10:07PM (#32559751)
Headway was designed more for consumer use-cases than anything else. There's been some talk of adding the ability to customize it in the future but I don't have time for that because I need to focus on the basics first. You could fork it though, or just use some of the data automation (respecting the Apache 2.0 license). I replied to a child comment here but my recommendations for geocoding would be Pelias or Photon, and I like maplibre-gl-js. You can (should!) use planetiler for generating your mbtiles files and I've had generally good experiences with tileserver-gl-light, but many people recommend using PMTiles instead. It kind of just depends what your requirements are. For privacy-first stuff like Headway I can't require that people make requests out to S3 or Cloudflare, it has to be self-hostable which means a traditional tileserver is the only way to go.
Re:Maps.earth – free and open-source web maps by shafyy on Tuesday August 23, 2022 @02:58AM (#32561380)
Thanks for the info! I'll look into your recommendations.
Re:Maps.earth – free and open-source web maps by bearjaws on Monday August 22, 2022 @06:40PM (#32558204)
We're in the same boat using Mapbox, we've been debating leaving for the OpenStreetMaps container since we only use them for static images and map display. https://github.com/Overv/openstreetmap-tile-server

Our bill last year was $80k and honestly its right on the cusp of being worth the effort to switch.

Re:Maps.earth – free and open-source web maps by gardnr on Monday August 22, 2022 @08:33PM (#32559148)
> Our bill last year was $80k

You might be able to pay someone from the project to help you switch. A nice way to give back and it will probably be a smoother transition.

Re:Maps.earth – free and open-source web maps by Bedon292 on Monday August 22, 2022 @09:41PM (#32559569)
Have you looked into Nominatim [1] for reverse geocoding?

[1] https://wiki.openstreetmap.org/wiki/Nominatim

Re:Maps.earth – free and open-source web maps by ellenhp on Monday August 22, 2022 @09:59PM (#32559687)
Nominatim requires a lot of resources for full planet installs. I'd recommend looking into Pelias or Photon instead. They're both amazing. Headway has used both of them at various points. Photon is definitely easier to set up for the planet, though, you can just download a pre-computed search index from GraphHopper and you're good to go.
Re:Maps.earth – free and open-source web maps by shafyy on Tuesday August 23, 2022 @03:05AM (#32561432)
I haven't. Thanks for the recommendation!
Re:Maps.earth – free and open-source web maps by petre on Tuesday August 23, 2022 @01:39AM (#32560828)
Try MapTiler. It works fine with what you're using. For geocoding, I dunno, we run our own show.
Re:Maps.earth – free and open-source web maps by shafyy on Tuesday August 23, 2022 @03:04AM (#32561427)
Thanks! MapTiler looks great, but a bit on the pricey side for our use case.
Re:Maps.earth – free and open-source web maps by petre on Tuesday August 23, 2022 @03:25AM (#32561575)
We picked it specifically because Mapbox was too expensive. We pay like between 20 and 30 euros each month for tens of thousands of transactions. You can also buy tile sets and serve your own vector tiles, but it isn't worth the hassle for us.
Re:Maps.earth – free and open-source web maps by shafyy on Tuesday August 23, 2022 @09:20AM (#32564517)
Re:Maps.earth – free and open-source web maps by petre on Tuesday August 23, 2022 @10:40AM (#32565582)
No. We no longer want to bother with monthly updates and the overhead of maintaining our own tile server over <30€/month. We tried to make our own raster tile server several years before vector tiles were a thing, using tilecache, then tilestache and just gave up because of the storage and hardware requirements. Plus there's a lot of work involved in customizing your maps - we didn't want to show the standard OSM map built for mappers in mind but a transport oriented map for fleet tracking. MapTiler has almost everything we want except good Africa coverage.
Re:Maps.earth – free and open-source web maps by shafyy on Wednesday August 24, 2022 @07:17AM (#32577841)
Makes sense, thanks for your explanation.
Re:Maps.earth – free and open-source web maps by NanoWar on Tuesday August 23, 2022 @03:33AM (#32561629)
You can spin up an own instance in a docker container easily (if you self host everything anyways).
Re:Maps.earth – free and open-source web maps by shafyy on Tuesday August 23, 2022 @09:19AM (#32564503)
Yeah just saw that after making the comment, thanks!