Live data from Hacker News

Maps.earth – free and open-source web maps

about.maps.earth

31–40 of 117 posts

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

#31
post #28

Earlier quoted context omitted.

OK, the GitHub page spells it out better [0]. > Self-hostable maps stack, powered by OpenStreetMap. In addition to listing out some of the required specs (for a localized area) [1]: > ... generation ... needs ... 8GB of memory ... running ... around 4GB ... > ... recommend ... 50GB ... disk space [0] https://github.com/headwaymaps/headway [1] https://github.com/headwaymaps/headway#system-requirements

could we.... uh, have our server for a specific city or town for example if the use case is around that area only? that would save a lot of resources

Yup! That's how most people run Headway right now. You can probably get by with around 2GB of RAM for a medium-sized metro, possibly even less.

Also for full-planet requirements, the OVH box running maps.earth has 64GB of RAM and 6 physical cores and is really struggling right now. Load average is about 40, most its CPU time is spent on the Valhalla service. Really enjoying watching the metrics right now :)

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

#32
post #21
post #10

Earlier quoted context omitted.

OSM doesn't have a server per se (other than the OSM API server). It's a dataset for the most part. Headway lets you bring up a server that will render maps tiles, allows you to search for places and get routes between places. It's trying to be a user-friendly UI for various pieces of the OSM ecosystem. There are a lot of amazing pieces of software out there that work with OSM data, but there isn't an easy way to bri…

There no frontend to bring up an OSM? Literally you need a single line to load one up: (new map('map_div')).addLayer(new TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'))

Using tile.openstreetmap.org is subject to the OSM tile usage policy: https://wiki.openstreetmap.org/wiki/Tile_usage_policy

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

#34
post #32
post #21

Earlier quoted context omitted.

There no frontend to bring up an OSM? Literally you need a single line to load one up: (new map('map_div')).addLayer(new TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'))

Using tile.openstreetmap.org is subject to the OSM tile usage policy: https://wiki.openstreetmap.org/wiki/Tile_usage_policy

Their data is also subject to this policy: https://wiki.openstreetmap.org/wiki/OpenStreetMap_License

They also heavily discourage bulk downloading tiles so I'm not sure if you're that much better off building your own tile server.

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

#35

Is it possible to access it via less js heavy frontend? Owner of Nokia N900 here :D Would great to have Ghost in the Shell style super lightweight maps

Unfortunately no. maplibre-gl-js requires webgl for vector tile rendering. That's how you get snappy zoom performance, reduce the load on the end-user's cellular connection, etc.

Sick phone though I'm a little bit jealous :)

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

#36
post #32
post #21

Earlier quoted context omitted.

There no frontend to bring up an OSM? Literally you need a single line to load one up: (new map('map_div')).addLayer(new TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'))

Using tile.openstreetmap.org is subject to the OSM tile usage policy: https://wiki.openstreetmap.org/wiki/Tile_usage_policy

To add onto this, those are raster tiles and the industry is moving away from raster tiles for a multitude of reasons. Headway doesn't bulk-download tiles from OSM, by default it takes an OSM extract from BBBike (with explicit permission) and brings up a server based on that. It generates vector tiles with planetiler and serves them with tileserver-gl-light. I've put a lot of thought into the way it all works in an effort to minimize load on the OSM ecosystem's infrastructure, provide attribution where required, etc.

I can promise you that there's no one-line replacement for the work I've done here unless you want to go out and pay for a closed-source product.

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

#37
post #35

Is it possible to access it via less js heavy frontend? Owner of Nokia N900 here :D Would great to have Ghost in the Shell style super lightweight maps

Unfortunately no. maplibre-gl-js requires webgl for vector tile rendering. That's how you get snappy zoom performance, reduce the load on the end-user's cellular connection, etc. Sick phone though I'm a little bit jealous :)

I can also imagine requesting route via terminal and getting just list of directions which is many times enough

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

#38
Very impressive!

Is it just me (Firefox on Android) or does the UI really not allow tapping landmarks (shops, restaurants, subway stations)?

Also, directions don't seem to work right now (infinite loading) but I suppose this is due to the server receiving the HN hug of death right now.

By the way, for anyone looking for the mobile (non-web) version of this: Organic Maps is a fantastic frontend for OpenStreetMaps (and of course there's the good old OsmAnd, though I like Organic Maps better these days).

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

#40
post #31

Earlier quoted context omitted.

could we.... uh, have our server for a specific city or town for example if the use case is around that area only? that would save a lot of resources

Yup! That's how most people run Headway right now. You can probably get by with around 2GB of RAM for a medium-sized metro, possibly even less. Also for full-planet requirements, the OVH box running maps.earth has 64GB of RAM and 6 physical cores and is really struggling right now. Load average is about 40, most its CPU time is spent on the Valhalla service. Really enjoying watching the metrics right now :)

could you put up munim or other similar metrics site for public? it would be nice to see such a high load
Post reply on HN