4 ms·
Any good tutorials on this? What are the required specs? I assume the dataset is huge?
by folli 6y ago
Any good tutorials on this? What are the required specs? I assume the dataset is huge?
- walrus01 6y agohttps://wiki.openstreetmap.org/wiki/Slippy_Map https://wiki.openstreetmap.org/wiki/Slippy_Map https://wiki.openstreetmap.org/wiki/Deploying_your_own_Slippy_Map https://wiki.openstreetmap.org/wiki/Deploying_your_own_Slipp... https://switch2osm.org/serving-tiles/ https://switch2osm.org/serving-tiles/ It's small enough that I have a self hosted test tile server in my home office with about 8TB of storage, on a WD hard drive that was shucked out of a USB3 enclosure. https://medium.com/gowombat/self-hosted-open-source-cheap-alternative-for-google-maps-api-services-9a2c2002952b https://medium.com/gowombat/self-hosted-open-source-cheap-al...
- peterburkimsher 6y agoI had a look at self-hosting Nominatim, but got scared away by the hardware requirements. I only have a spare 2015 MacBook Pro 13" with 16 GB of RAM and 2 TB of SSD. I only need small countries (New Zealand, Taiwan, Switzerland), but I'm not sure whether this will reduce the system requirements. "A minimum of 2GB of RAM is required or installation will fail. For a full planet import 64GB of RAM or more are strongly recommended. Do not report out of memory problems if you have less than 64GB RAM. For a full planet install you will need at least 800GB of hard disk space (take into account that the OSM database is growing fast). SSD disks will help considerably to speed up import and queries. Even on a well configured machine the import of a full planet takes at least 2 days. Without SSDs 7-8 days are more realistic." [0] I'd also like to render tiles in the OSM Bright theme. The default OpenStreetMap just looks kind of unattractive to me. In the end I just use an old version of Galileo Offline Maps (now Guru Maps) with tiles scraped from Google using MOBAC. [1]. I made MOBAC profiles for every country [2] so I can just re-scrape them when I have a fast Internet connection. [0] https://nominatim.org/release-docs/latest/admin/Installation/ https://nominatim.org/release-docs/latest/admin/Installation... [1] https://mobac.sourceforge.io/ https://mobac.sourceforge.io/ [2] https://github.com/peterburk/mobacProfiles https://github.com/peterburk/mobacProfiles
- walrus01 6y agoIf all you want to host is a "slippy map" tile server for maps, but no search features, it's considerably less. In my case, it's not hard for me to create an off-laptop VM as a resource... I would not want to attempt self hosting OSM on my own laptop. No matter how powerful it is. If it's for any sort of for-profit company use (like the ISPs using openstreetmap for network monitoring maps I mentioned in the same thread), fairly powerful used 16-core, 1U and 2U rackmount servers with 128GB of RAM (dell r620, r720, etc) are available used for $430. Then add a couple of 1TB SATA3 SSDs.
- peterburkimsher 6y agoMy laptop is better than what the company can provide! Just because I work at a "for-profit" startup doesn't mean they actually make a profit. I even had to transition our servers from AWS to DigitalOcean just to save on server costs. I'll probably first look into running it on a dedicated SSD on the spare laptop, and if that goes well, move some subset onto my main laptop (2014 MacBook Pro 15" with 4TB SSD). For a "slippy map", I use Leaflet with some scraped MOBAC tiles. https://github.com/peterburk/bamb https://github.com/peterburk/bamb Search/geocode is missing though, and that's what would really make it more useful. Particularly if I can cut down the geographic range to squeeze it onto my 64GB phone.
- JaggedNZ 6y agoI'd suggest you figure out how to source or render your map tiles from somewhere else before you get a nastygram from the big G. I have not used it in many many years but I'd point you towards https://mapserver.org/ https://mapserver.org/ At one point I was one of many responsible for rending cache tile sets for all of NZ to 1:500. Sadly the whole system was scraped for a propriety solution mostly due to front-end issues, that funnily enough the propriety solution only multiplied.
- Doctor_Fegg 6y agoPhoton is good for self-hosting - it’s the pre-compiled Nominatim index (you can download a dump) with an autocomplete-friendly Elasticsearch interface.