Switch to OpenStreetMap
switch2osm.org
switch2osm.org
First option (Build a tile server using packages) ... i click on it.. ubuntu packages... i don't have ubuntu here, let's go back.
Second option (Build a tile server from source), takes me here: https://switch2osm.org/?page_id=76 ... where is the documentation? How do i build it from source?
Ok fsck it, let's try the "all in one solution"... https://switch2osm.org/serving-tiles/using-an-all-in-one-sol... ... "Page not found"
So.. either install ubuntu, or figure it out by myself?
The "all in one solution" link used to point to TileMill, which is no longer maintained: https://wiki.openstreetmap.org/wiki/TileMill
I have no earthly idea how to get this to work.
But none of this matters, looks like there are several Docker based tile servers, which are a relative breeze to set up on any operating system.
I don’t think that is the point OP was making. If you’re even remotely thinking about running a tile server, you’d be able to spin up a VM of Ubuntu.
For a world map server you would need a beefy machine to make it less painful, something like 64 GB ram, multi nvme ssd and countless cores.
I wish they offered a Postgres dump of it.
A Postgres dump would be massive.
Indeed - it inflates to hundreds of GB during my import process.
It takes about 18 hours to import the whole planet onto a E5-1650v3 server, with 256GB RAM and a 1TB SSD. 128GB RAM would certainly have sufficed. The number of cores doesn't actually matter much. I've never seen it use more than 8 cores, even when I ask it to use far more.
I'd be surprised if this were indeed the case, even on spinning disks. Did you use the pbf export? I can load it in two or three days using osm2pgsql on my home desktop (albeit with SSDs). On the £10k+ work server it loads in about 24 hours.
The issue with providing a Postgres dump is that people often want different things from the output data, and the choices made during the import might rule out certain uses.
I then calculated how long it would take to finish the second phase according to how much it had accomplished in those few days and I calculated that I would have to let my PC on until December 15 (it was back in September or October I think).
I looked at this for a POC but was notably out of my depth and gave up. I'm not sure exactly how the tileserver OSM provides differs from the mapping servers in the link above.
Anyway, I was interested in this at the time for a hobby project and (rightly) decided the effort would not be worth it. Thanks for the insight!
I understand your comment about sql thinking, in my day-to-day work I'm a bit of a reluctant sql developer (shudders in procedural spaghetti) but am gaining appreciation for being able to hand off aggregations and calculations to the db.
We were building a HIPAA compliant app a few years ago. OSM looked like a good option and fit a lot of our requirements. Then I looked into actually using it and ran.
To me, it seems like there's a huge opportunity for OSM or a third party to run a managed OSM instance.
The easiest way is to use Maperitive — freeware OSM render app (for live rendering or for generating tiles on own PC).[0]
I threw in the towel and switched my server builds to ubuntu this year for this reason.
What you have?
> If you are setting up your own tile server, we recommend that you use Ubuntu Linux.
This meant our 7000 employees couldn’t get compensation for any work related driving, and we couldn’t submit the correct tax-records.
When I submitted my correct edit, I was banned because my account was new and I had submitted a evidence from our internal street planning system, where we mapped the direction of the street, which is proprietary to us. Heh, it took two weeks to get it fixed after that because every subsequent edit got denied. Which felt kind of silly, considering it was my department who decided the street should become a one way street in the first place. Really needed a “verified” account system.
Considering I haven’t needed to correct anything since is a testament to its quality though.
Do you have a link for your changeset and what happened?
"YOU MORON WHO PROMISED T INTERMEDIATE BETWEEN ME AND THE GYPSIES TAKING OVER IN THE ROMANIAN NEWSLETTER, AND THEN YOU JUST RUDELY FORGOT NEED TO STOP!!! GO DO A JOB FOR WHICH YOU ARTE QUALIFIED"
This sounds like a copyright issue. OSM is not accepting copyrighted data on incompatible licenses.
Edit: I'm now on some NSA list, aren't I? Hi guys! Just finished Snowden's book, it was great!
Here's an example mine area: https://www.openstreetmap.org/way/627538334#map=17/44.32936/...
I would suggest adopting hazard=minefield (in addition to the other tags you use) for use on paths/roads/routable objects going over or skirting the minefields as well. The hazard-tag is a proposal, but has been used in the field a good number of times (coincidentally, a few times in Serbia).
That's brave - one bug and you could have people walking into a minefield that you've told them was somewhere else.
In this case, I think it really depends on the use-cases and whether proper warnings are displayed.
This helps a lot, but it's not a replacement for brain.
When using OpenSea map or any other nautical chart I understand that just because some rocks, wrecks, etc are marked there is no guarantee, that there cannot be more.
He is not marked area as "cleared of mines"
I worry more about e.g. defibrillators. They might break or be removed af being put on OSM, and we do not want people running the wrong way when time is short.
Do you have any more documentation on what you're doing, how you're doing it? That sounds interesting. Any OSM Wiki page about the project?
I've used it in over 40 countries (including Africa, Europe, North America) and it is staggeringly complete and accurate. From the mega capital cities to the tiniest village, it has every single dirt track, school, hospital, gas station, roundabout, intersection, etc. etc.
I can count on one hand the number of times it hasn't been utterly perfect in 4 years of driving around 90,000 miles through 40 countries.
I have no idea how the maps can be so shockingly good in rural Ivory Coast or Burundi, but they are.
I travelled extensively in 35 African countries - including a bunch you wouldn't expect to get good data for like The DRC, Burundi, Sudan, Mali, Gambia, Djibouti, Ethiopia, etc. As well as Belgium, France, Spain, Canada, USA
What do you see lacking in your city?
Mongolia is poorly mapped on all maps, not just OSM. But OSM coverage was the poorest about one year ago. Don't know if it is improved since then.
I don't drive so I rely heavily on public transport, and so for me that's the biggest selling point for any such tool. Unfortunately I've yet to find an OSM app that can do this in a useful manner as Citmapper and Google do. Unfortunately the data is just not there, and when looking through the issues of AndOSM, it feels there is a lot the developers just don't want to bother implementing (and in one scenario, someone had raised a PR but they refused to merge it). Granted, some issues are due to licensing, but many are quite important from a usability point of view.
It's been a while since I last time tried AndOSM, or OSM on it's own for that matter, so unfortunately I can't remember the specific cases.
However, just looking at it again now I see there's an "Online Search" button if you scroll to the very bottom of all the search results which seems to properly geocode the exact address. I'll have to play with it more to judge how accurate it is, but that's a convenience I wasn't aware of before.
You can find it on osmand.net, the F-Droid repository and the Play/ios store.
There is definitely a place for a much simpler app, that focuses on the most important features and ease of entry.
It just would not have been possible without OSM's data, full stop. The tag data associated with each road ("way" in OSM parlance) is invaluable, as is the ability to work with all of this information on a planet-scale in a single database (I use osm2pgsql to import the whole planet into a single box with 256GB RAM, and have plenty of headroom to run my app on top of that too).
The APIs provided by Google Maps and Apple Maps do not provide the functionality I want, even if I could pay their massive fees. Additionally, Google Maps' mapping of trails is much worse in my experience.
Whilst the data is far from perfect in some areas, I am still extremely grateful that OSM exists, and will now make a donation via https://donate.openstreetmap.org/
If you stare a lot at maps for the Bay area, this is about as good as it gets for e.g. Google and Apple maps. Don't assume you get the same level of detail everywhere. Making maps is complicated and expensive. OSM is pretty competitive in many places and the best there is in quite a few other places. And if that's not the case, the locals can fix it, if they want to.
Other countries I randomly spot checked did seem to have great OSM records though.
I wonder if this is still an issue... AR RTS is my use case as well, and the mapping is obviously a huge component.
I think Pokemon Go switched to OSM a couple years ago, didn't they?
You do realise OSM runs on like £50,000 per year, and has basically sorta one employee? it's not that big!
Myself I am a happy user of maps.me as an app (even paying user before they were acquired) and have built tons of toy tools around it (basically whenever I need to do a tech demo I use osm data queried from overpass etc.) and there are cool things one can do ... but the shiny user-friendly thing is missing and "don't give Google your data" for many doesn't work.
Edit/p.s. I know that openstreetmap.org is supposed to be the "developer site" and others are supposed to build the "nice" products, but it's the entry to the project, where the brand leads.
Anyone here know someone who could help resolve that? We pretty clearly fit the guidelines for inclusion.
I certainly appreciate the work that’s gone into it and the new design/strategy is an excellent improvement.
I clicked "Use an all-in-one solution" on the Serving Tiles page but it 404'd.
Then once you are comfortable, move to Leaflet, while keeping Mapbox tile service, and then build your own.
Did you have a "best" in mind.
I'd definitely not consider plain satellite imagery to be map data.
Same problem with rivers... a lot of rivers show up the same color as the forest on satellite images so you'd never know there was a river there even if you can "see" the water.
Depending on the angle of the satellite, this problem exists in large cities as well. Roads are obscured by skyscrapers even at the slightest angle, and roads disappear from the picture without telling you if they went underground into tunnels or just ended.
Now, satellite pictures overlaid with map data, that works. But just satellite pictures by themselves isn't enough to navigate.
For example, my city gets aerial imagery taken ~yearly, with resolution better than 1 ft/px. This is very precise, and the updates are frequent; yet, still insufficient to answer typical mapping questions, such as "can I get there from here, using this vehicle?" That's what a map should be able to answer: both map and aerial image can tell you "there is a vehicular track", but only the map will tell you "and it's private, and even if you don't care for signs, this gate over here is locked, so no, this does not route; you can't go over that road here, as it has a bollard in the middle; that bridge is too flimsy for you; that street is one-way but opposite; you need to go that way, but there's toll collected; otherwise, there's a lengthy detour."
Only some of these features can be inferred from an image. (Of course, the map needs to be kept up-to-date with all this data, but that's a very different story)
Not to mention that afaik the "map data" itself isn't actually available from either MS or Google - they only sell usage of it through their limited APIs.
The data TomTom and HERE have is focused on navigation use cases - it doesn't have so much 'visual' stuff as OSM but has has large quantities of information that is only relevant for car navigation, e.g. historical traffic patterns and lane assignments.
This is the theme of an advertisement I'm putting together for next week.
We've built a 3D API which is used by RedBull, Microsoft, ViewRanger, Polaris, and more to better engage their users than 2D Maps.
All the sports tracking apps look the same, so if you want to differentiate your product, 3D maps can help tell the story. People use 3D maps for transportation, wildlife research, commercial drone operations and more.
Check it out at https://ayvri.com API at https://ayvri.com/pages/api
- Participate in mapathons (through HOT or local chapters of OSM)
- Join your local OSM chapter (usually a national organization)
And after a while getting used to it you may want to configure the "questions" StreetComplete asks you.
Better not answer every type of question than get discouraged or fed up with the umpteenth "is there street lighting?".
Of course, if you can stomach being bombarded with questions every few meters, more power to you!
I also turned off speed limits since it has a warning that you need to check the entire road, not just the highlighted spot.
There's many QA tools with error reports that need attention https://wiki.openstreetmap.org/wiki/Quality_assurance
I once managed to import data exports I found on geofabrik and load it into a spatialite database. It was not very complicated but it was difficult to find help to understand what I was doing. But doing it felt pretty good. I still have to test if what I loaded actually works though.
Other experience I had, trying to load vector tiles from mapbox, with the PBF (google protocol buffers) format, in C++. I swiftly gave up. The C++ header generated was gigantic, apparently those .mbtiles were zipped PBF in a sqlite or something like that. It was horrendous. Mapbox seems like good software (and we need alternative to google maps) but I don't think they help OSM at all, at least not with the OSM model.
So in short, OSM needs some skilled engineers to work on the formats they can encourage. GIS is not a simple subject, and I wish there was more good FOSS for it.
Cheers to the OSMand team who can let me browse my region on my 70 euros android without a data plan, for free! That's a lot of money saved.
No doubt I will use OSM data to generate a 3D view of the world, so I can make a game with it. Outerra did it (they also made incredible city renders I think), but they are not planning to release a game, what a shame!
You can do as I as I did, import data from exports available on geofabrik into spatialite. And then progressively render data from spatialite (I did not try that step).
ogr2ogr allows you to do this:
ogr2ogr -f "SQLite" db.sqlite roads.shp -dsco SPATIALITE=YES
You can find those .shp here http://download.geofabrik.de/Then the query in spatialite, here with python:
where2 = lambda lng, lat, dist: " where PtDistWithin(geom, GeomFromText('POINT(%f %f)', 4326), %f, 0)"%(lng, lat, dist)
select2 = lambda lng, lat, dist: "select id, AsText(geom) from points "+where2(lng, lat, dist)For something like having a single country at couple decent zoom-levels, I would rather not go through the trouble of setting up a complete render pipeline when pre-rendered tiles that are cached and hosted locally would suffice.
But it's a lot of work that has to be redone constantly to keep up with map changes... Not realistic for a small organization (or an individual!) unfortunately.
That said, I am using the dataset for generating a map, but I'm only using a country extract - which only goes up to some hundreds of MB, and updates on the order of tens of kilobytes. Far more manageable.
It seems like a great dataset, and maybe the editing tools are better than the consumer clients, but if they really want it to gain traction they desperately need to put some effort into the end-user experience.
Are there any?
Mapbox Streets is an example of good map design: https://www.mapbox.com/maps/streets/
Hmm, doesn't show forests and doesn't show built-up areas, either, which are precisely the things I really dislike about Google's map design, too.
The POI icons are huge. The text for obvious things ("New York City" when I'm staring at just Manhattan) is huge and unnecessary. There are too many shown at the street level. Every block has restaurants and bus stops. They're not labeled, just taking up a huge amount of space.
It feels like an old linux desktop, before they got usable.
The map is covered in visual clutter that takes too much effort to visually process.
I agree that Google Maps needs more street names, but that's my only complaint about the map. That's an easy fix.
Navigation is modal in OSMand (you can define your own modes, as well as use the predefined ones), so you can for instance have a hiking mode with a topographic view, or a car mode that hides finer details like trees and cycleways.
Search has been improving recently but still lacks behind Google. Public transport and reviews are missing too.
https://wiki.openstreetmap.org/wiki/Comparison_of_iOS_applic...
https://wiki.openstreetmap.org/wiki/Comparison_of_Android_ap...
Especially the geocoding part to convert addresses to points on the map/geo coordinates, or something like the search box on openstreetmap.org.
Holding the map information up to date was another topic...
Or build your own from planet.osm (that's a file, not a domain (it's hard to tell these days)).
b) the more sensible approach would be to use pre-generated vector tiles, for example from https://openmaptiles.org/
Now we just have to periodically take a fresh pull of the tile package, so our tiles aren't too out of date.
I use Graphhopper and Openrouteservice - both are very actively maintained.