4 ms·
I totally support OSM 1000%... But frankly, it seems it's still a lot of work to build OSM into your own website/app, setting up your own tile server. I know
by crazygringo 8y ago
I totally support OSM 1000%...
But frankly, it seems it's still a lot of work to build OSM into your own website/app, setting up your own tile server.
I know there are instructions for this [1] [2] -- but to really get popular, it seems like there really ought to be up-to-date, auto-updating, officially recommended and totally secure server images on Digital Ocean, AWS, Google Cloud and Azure where anyone can spin it up for $5/mo without even ever having to SSH in once (except to update the root password), and then embed a live JavaScript map into their web page with two lines of code -- one to load the library, and one to insert a live map of a given size centered on a given location. Where the whole process shouldn't take more than 10 minutes, and most of that is waiting for the image to be copied to your server.
I've Googled but I can't find anything like that -- with the links below, I assume I'd be using at least a day to set things up, especially since setting up servers from online tutorials never goes smoothly, as you have to google error messages that arise since newer versions have changed slightly since the tutorial was written... And most times where I just want to "throw in a map", I don't want to spend a day+ doing it.
[1] https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ https://switch2osm.org/manually-building-a-tile-server-18-04...
[2] https://ircama.github.io/osm-carto-tutorials/tile-server-ubuntu/ https://ircama.github.io/osm-carto-tutorials/tile-server-ubu...
- willio58 8y agoIf what you mentioned existed I would immediately implement it on A number of sites I’ve made for clients. I don’t want to ask for the time to setup and maintain something that will take over an hour of the allotted development time.
- ganeshkrishnan 8y agoTakes a couple of days to set it up but the results are amazing. We also have setup the Geo coding and reverse Geo coding with nominatim. A million requests per day costs us peanuts as opposed to Google , which anyway suspended us due to international credit card verification issues. On a related note, Firefox on Linux came with duckduckgo as default and I am so impressed with it's search results. Unfortunately their API does not return the same quality of results
- kyrra 8y agoI'd be interested in hearing what issues you've had with adding a card on Google's platform. There is a chance you could diagnose it yourself by trying to add it, then contacting your bank and asking why the authorization was declined.
- ganeshkrishnan 8y agoI dont think I should be chasing up my bank on why authorization failed. I have zero interest in using google maps for my production environment
- kyrra 8y ago(I'm a software engineer on Google's payments platform) I'm sorry you've had problems adding your card. If there is a systematic problem with some bank, I can sometimes do something about it (but no guarantees). I've added my work email to my HN profile, incase you want to reach out to me.
- SyneRyder 8y agoI'm upvoting this one as Kyrra works at Google on payments, according to Kyrra's profile. (That wasn't immediately clear to me from the comment.)
- kqr 8y ago> On a related note, Firefox on Linux came with duckduckgo as default and I am so impressed with it's search results. I gave DDG a new chance a few months ago, first just on my phone as a pilot. It was good enough that I switched on all my devices. Huge difference from a few years ago!
- joshdance 8y agoYes yes yes.
- mtmail 8y ago> up-to-date, auto-updating, officially recommended and totally secure server images Plus volunteers to answer any and all support requests? And the tile rendering needs to be fast? $5/month isn't enough hardware to a world-wide tile server and it sounds like users aren't willing to pay for setup costs. > just want to "throw in a map", I don't want to spend a day+ doing it. There's plenty of SaaS offering OSM tile hosting. If those are too expensive (quite more than $5/month, some have pay-as-you-go pricing) it's an indication running those servers is more complex than it seems. > Where the whole process shouldn't take more than 10 minutes That said, check out https://openmaptiles.org/docs/ https://openmaptiles.org/docs/ installation. (They will charge up to 1000 USD for commercial use, free for personal project).
- jrockway 8y agoI think the $5/month he's envisioning is for the computing/bandwidth charges on the cloud providers he mentions. The software, container, images, etc. should all be provided for free, and the open source bug tracker should have a 1 second SLA for replying to questions on getting it set up. But on a serious note, yes, it would be nice if there was some pre-built container that just served the OSM tiles on an HTTP port. I imagine most people integrating OSM want to use their existing static-file-serving setup, which is why it doesn't already exist. (Or maybe it does, I haven't looked.) In the end, Google Maps is free for 25,000 map loads per day and you don't have to run any servers. I'm guessing this is why it's more popular. The $5/month the OP ballparks as a price is how much Maps would cost for 760,000 map views per month. In the end, I doubt you'd do a lot better than that unless your bandwidth is free or you're serving a lot of maps. This, I guess, is why OSM isn't much more popular. The map data ends up not being the expensive part; bandwidth/hosting is. I think the innovation in OSM is being able to use it for whatever you want. Garmin bike GPSes don't even use Garmin's own map data anymore; it's apparently cheaper for them to just use OSM data. That's because they don't have to pay the bandwidth hosting costs, they just dump the data out of the database and give people that care an update every 6 months. Each incremental map render costs them nothing, and nobody can stop them from using the data however they want. Pretty interesting that it ended up a better deal for them than using the maps they collected themselves (and probably supplemented with other vendors' data that won't let them use it on that "download once, use forever" model.)
- sidstling 8y agoWe can’t really use google maps in the Danish public sector where I work, because they track your data. So we use osm and I think you’re daily spot on. I work in a small municipality so we don’t really have the resources to do the integration ourselves. What we did was find a company which specializes in making google maps like APIs/integration to osm as well as having a support line that can correct osm mistakes for us. This is not free, like doing the integration ourselves would be. I can’t give you the exact price, but it is a lot cheaper than google maps and it’s worked great for us for several years now. We did by a package with little osm support because we can update osm ourselves, but calculating routes is something we could never do within our budget. If your country doesn’t have any companies offering these types of osm services, then I bet you could make a lot of money by building it though.
- OiNG 8y agoare you using mapbox by chance? im asking because i was under the impression that they were exactly this, a non google maps api.
- jimmaswell 8y ago> We can’t really use google maps in the Danish public sector where I work, because they track your data. Perfect example of stifling regulations hurting the average person.
- _khau 8y agoThis has to be sarcasm.
- badosu 8y agoIt certainly feels like it. If it did not have that snark though, one could make the point that the data could still be 'deanonimitized'.
- jimmaswell 8y agoIt's not sarcasm. It doesn't actually matter at all if Google Maps "tracks" you. But this pointless legislation decided it does and now people have to settle for surely inferior alternatives.
- VvR-Ox 8y agoExactly the same, I'd like to support it because the idea is great! But this amount of work is just too much. Besides running your own tile server I'm also having problems using OSM to navigate. In the meantime I use G-Maps for stuff that is important and when I have to find my route quickly, it's just more reliable (it hurts to say that).
- Doctor_Fegg 8y ago> I assume I'd be using at least a day to set things up You assume wrong. :) It takes an hour or so to get a tileserver up and running with the switch2osm instructions. I've done it countless times. (You do then need to wait for the Postgres database to populate, but that's just fire-and-forget.) They're written for Ubuntu LTS versions so the "newer versions" issue doesn't arise. Or if Docker's your bag, you can get a ready-to-go image from openmaptiles: https://openmaptiles.com/server/ https://openmaptiles.com/server/ > where anyone can spin it up for $5/mo Not gonna happen. Running a worldwide map server needs a lot of (SSD) storage and decent CPU. I have a £10/month Hetzner VM just to do geocoding (with Photon: https://github.com/komoot/photon https://github.com/komoot/photon) so you aren't going to get a tileserver for half that - and that's no surprise; OSM is ultimately competing with Google, and you can't really expect to host your own Google for $5. But there are plenty of hosted options with tiered pricing.
- jaakl 8y agoA worldwide tile server for low load (up to <30 tps) decent latency (<100ms per tile) can be set up with 2core, 4GB ram and 70GB HDD machine. Key is to use “prerendered” vector tile stack. Geocoding is way harder task. The old sites like switch2osm tend to have old and slow imposm/Postgres stacks.
- niutech 8y agoWhat keeps you from using Leaflet https://leafletjs.com https://leafletjs.com with one of the free tile servers? https://wiki.openstreetmap.org/wiki/Tile_servers https://wiki.openstreetmap.org/wiki/Tile_servers It is a one-liner: L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(map)
- cube00 8y agoThis is what stops me: "OpenStreetMap data is free for everyone to use. Our tile servers are not." https://operations.osmfoundation.org/policies/tiles/ https://operations.osmfoundation.org/policies/tiles/
- rmc 8y agoIs that a big problem for you? The OSM operations working group is run by volunteers, on semi-donated hardware. They don't offer SLAs, they don't offer uptime guarantees. If you create an app that's (say) responsible for a 20% increase on load, they'll block you. If you're that popular buy a tile service from someone else.