News for hackers. Stuff that matters.
Re:Why Use OpenStreetMap Instead of Google Maps? by crazygringo on Saturday July 14, 2018 @07:34PM (#17532940)
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...

[2] https://ircama.github.io/osm-carto-tutorials/tile-server-ubu...

Re:Why Use OpenStreetMap Instead of Google Maps? by sidstling on Sunday July 15, 2018 @05:00AM (#17534446)
We 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.

Re:Why Use OpenStreetMap Instead of Google Maps? by OiNG on Sunday July 15, 2018 @01:54PM (#17536226)
are you using mapbox by chance? im asking because i was under the impression that they were exactly this, a non google maps api.
Re:Why Use OpenStreetMap Instead of Google Maps? by jimmaswell on Sunday July 15, 2018 @07:15PM (#17537635)
> 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.

Re:Why Use OpenStreetMap Instead of Google Maps? by _khau on Monday July 16, 2018 @04:53AM (#17539722)
This has to be sarcasm.
Re:Why Use OpenStreetMap Instead of Google Maps? by badosu on Monday July 16, 2018 @05:59AM (#17539978)
It certainly feels like it.

If it did not have that snark though, one could make the point that the data could still be 'deanonimitized'.

Re:Why Use OpenStreetMap Instead of Google Maps? by jimmaswell on Monday July 16, 2018 @05:54PM (#17545493)
It'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.
Re:Why Use OpenStreetMap Instead of Google Maps? by daltonlp on Tuesday July 17, 2018 @01:49AM (#17547567)
You're saying the "pointless legislation" had a point. Just not one that you agree with.

This is a guess, but I suspect the point had to do with data privacy. Maybe someone wrote legislation that prohibits public websites from hosting ads, or third party browser-tracking software. And google maps fits that.

In the parent comment, there's also this bit:

> but it is a lot cheaper than google maps

If true, this is an example of government regulations working as intended, and saving money.

Re:Why Use OpenStreetMap Instead of Google Maps? by jimmaswell on Tuesday July 17, 2018 @03:10PM (#17552238)
If an alternative was cheaper and of comparable quality then legislation shouldn't have been required for it to be chosen by whoever was in charge of the decision.
Re:Why Use OpenStreetMap Instead of Google Maps? by mtmail on Saturday July 14, 2018 @08:59PM (#17533247)
> 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/ installation. (They will charge up to 1000 USD for commercial use, free for personal project).

Re:Why Use OpenStreetMap Instead of Google Maps? by jrockway on Saturday July 14, 2018 @09:45PM (#17533399)
I 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.)

Re:Why Use OpenStreetMap Instead of Google Maps? by JdeBP on Sunday July 15, 2018 @06:49AM (#17534673)
> Google Maps is free for 25,000 map loads per day

This statement is true for a few more hours. As the headlined article informs us, Google changes its pricing plan tomorrow, 2018-07-16. Instead of 25000 free loads per day, as of tomorrow people get USD200 credit per month, on accounts that now must be backed by credit cards (or have billing enabled). Google tells us that a credit of USD200 per month is equivalent to 28000 free loads (of a dynamic map) per month (not per day).

* https://cloud.google.com/maps-platform/pricing/sheet/

* https://cloud.google.com/maps-platform/pricing/

Hence the timing of the OpenStreetMap article, of course.

Re:Why Use OpenStreetMap Instead of Google Maps? by Tempest1981 on Sunday July 15, 2018 @01:00PM (#17536011)
So just under 1 cent per load (USD 0.007)
Re:Why Use OpenStreetMap Instead of Google Maps? by tomclive on Sunday July 15, 2018 @02:42AM (#17534091)
We were using Google Maps but the change in pricing means that we will need to find another service. From this week onwards there won't be any free map loads a day. There will be $200 of recurring credits which are the equivalent of 100,000 map loads(monthly). Previously if you were signed up for billing you could get 100,000 map loads a day. I can imagine OSM becoming far more popular in the near future.
Re:Why Use OpenStreetMap Instead of Google Maps? by ganeshkrishnan on Saturday July 14, 2018 @08:45PM (#17533174)
Takes 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

Re:Why Use OpenStreetMap Instead of Google Maps? by kqr on Sunday July 15, 2018 @03:39AM (#17534215)
> 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!

Re:Why Use OpenStreetMap Instead of Google Maps? by kyrra on Saturday July 14, 2018 @09:19PM (#17533324)
I'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.
Re:Why Use OpenStreetMap Instead of Google Maps? by ganeshkrishnan on Sunday July 15, 2018 @07:10AM (#17534720)
I 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
Re:Why Use OpenStreetMap Instead of Google Maps? by kyrra on Sunday July 15, 2018 @10:14AM (#17535319)
(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.

Re:Why Use OpenStreetMap Instead of Google Maps? by SyneRyder on Sunday July 15, 2018 @07:19AM (#17534745)
I'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.)
Re:Why Use OpenStreetMap Instead of Google Maps? by Doctor_Fegg on Sunday July 15, 2018 @06:53AM (#17534679)
> 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/

> 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) 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.

Re:Why Use OpenStreetMap Instead of Google Maps? by jaakl on Sunday July 15, 2018 @07:18AM (#17534737)
A 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.
Re:Why Use OpenStreetMap Instead of Google Maps? by niutech on Monday July 16, 2018 @04:14AM (#17539576)
What keeps you from using Leaflet https://leafletjs.com with one of the free 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: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(map)
Re:Why Use OpenStreetMap Instead of Google Maps? by cube00 on Monday July 16, 2018 @04:57AM (#17539734)
This is what stops me: "OpenStreetMap data is free for everyone to use. Our tile servers are not."

https://operations.osmfoundation.org/policies/tiles/

Re:Why Use OpenStreetMap Instead of Google Maps? by rmc on Monday July 16, 2018 @05:34AM (#17539869)
Is 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.
Re:Why Use OpenStreetMap Instead of Google Maps? by VvR-Ox on Sunday July 15, 2018 @05:47AM (#17534545)
Exactly 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).

Re:Why Use OpenStreetMap Instead of Google Maps? by willio58 on Saturday July 14, 2018 @08:30PM (#17533100)
If 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.
Re:Why Use OpenStreetMap Instead of Google Maps? by joshdance on Saturday July 14, 2018 @08:50PM (#17533196)
Yes yes yes.