Live data from Hacker News

Maps.earth – free and open-source web maps

about.maps.earth

81–90 of 117 posts

Re: Maps.earth – free and open-source web maps

#81
post #27

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…

Have you looked into Nominatim [1] for reverse geocoding? [1] https://wiki.openstreetmap.org/wiki/Nominatim

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

#82
post #27

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…

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

#83
post #75

Is there any support for non-earth maps ? Such as for a DnD campaign or a story set in Middle Earth ? Or even a war game on Earth but with different place names and countries borders names, etc ?

It is all based on OSM data. And I haven't checked in a few months but I believe Maplibre, which is doing the rendering, require the tiles all be in Web Mercator, which is an earth based coordinate system. So you would probably need to hack together something to change the underlying data into what you want. The easiest one would be changing place names and borders on Earth.

Re: Maps.earth – free and open-source web maps

#86

Is the data shared between vector tiles, geocoding and directions? Or is each feature pulling its data from a different index?

During data preprocessing it all comes from the same OSM extract, except for Pelias which also pulls data in from Who's On First, and Planetiler which also pulls data in from Natural Earth (and a few other sources).

At runtime tiles are served over the wire but everything else happens server-side. So it's a bit of everything :D

Re: Maps.earth – free and open-source web maps

#87
post #27

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…

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

#88
post #46
post #41

Earlier quoted context omitted.

You may have chosen Valhalla for other reasons, but FWIW I’ve found Graphhopper can handle 1-2 orders of magnitude more qps than Valhalla on the same hardware.

I wasn't happy with cycling directions in GraphHopper and I was having trouble getting route shapes from its routing endpoint which made it really difficult to plot route polylines on the map. I've also been looking forward to exposing some customization of routing parameters since valhalla allows you to do this fairly trivially. That is good to know, though. Valhalla really is getting hammered by all this traffic. :…

What problems did you face with cycling directions?

Regarding the route shapes I can only guess: we use an encoded polyline as default for a very compact response. You can either disable this or use our JavaScript library, or there is a new UI https://github.com/graphhopper/graphhopper-maps

Regarding routing parameters: our custom_model approach is more powerful than simple parameters and still not complicated: https://www.graphhopper.com/blog/2020/05/31/examples-for-cus... See e.g. the several bike examples and see how to get an world wide instance up and running: https://www.graphhopper.com/blog/2022/06/27/host-your-own-wo...

In recent master you can additionally control how elevation influences your route (e.g. prefer or avoid them entirely or steep sections or similar)

Re: Maps.earth – free and open-source web maps

#89
post #61
post #27

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…

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

Thanks, I'll check it out!

Re: Maps.earth – free and open-source web maps

#90
post #82
post #27

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…

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,…

Thanks for the info! I'll look into your recommendations.
Post reply on HN