5 ms·
Getting OSM data exports is a little tedious. They're available, but it's not so easy to get it since it's always very exhaustive. They should try to review ho
by jokoon 9y ago
Getting OSM data exports is a little tedious.
They're available, but it's not so easy to get it since it's always very exhaustive. They should try to review how they make data available for developers, have different data sets, appropriate file formats, etc. They should offers different level of exhaustiveness and type of maps. The most basic should only contain roads and streets with their names.
OSM.org is great as a google maps alternative for users, but the problem lies with how OSM lets it data being available. GIS systems are always sensitive to size and performance, so it's not a simple problem.
MapBox seems to be on the rise, but I don't know what they're doing exactly, and what is free or not.
I tried using their .mbtiles format once and failed, it is a combination of zlib, sqlite and google protocol buffer. The generated C++ headers were the most horrific thing I saw in my life. There are better alternative to google pbf, I guess flatbuffers for example?
I have no idea how one would or should distribute map files properly. XML is not indexed and very very large, mainstream databases are inadequate because indexing geographic data is tricky so you cannot really select a specific zone you want.
If I was openstreetmap, I would federate XML exports, and generate country exports automatically, AND generate smaller exports for smaller country regions. I don't know if a good alternative would be to provide slightly overlapping squares, so planet.osm would be divided by 16 (or 32) squares, and then each square 16 (or 32) times again.
Open platform only thrive if distribution is smooth, and for maps it's not easy but it could be done. It's only a data problem.
EDIT:
I'm talking about exports simply because OSM.org servers might never be able to hold XML API calls for every developer who wants to use it in their apps.
- rmc 9y agoOSM.org does provide a "per minute" data feed https://planet.openstreetmap.org/replication/minute/ https://planet.openstreetmap.org/replication/minute/ "basic map" with "roads and streets" is choosing one thing. What about country names? Or city/town names? What about administrative borders? which language should be included? What about turn restrictions?
- jokoon 9y agoUnicode can be used. As in basic map I meant something the user can recognize easily enough, but still more compact in data. If you want an user to navigate manually, this kind of data is enough.
- tordanik 9y agoExports for countries and smaller regions (in the .osm.pbf Protobuf format as well as some others) are typically provided by third party services such as Geofabrik's download server: https://download.geofabrik.de/ https://download.geofabrik.de/ It's linked from the "export" tab on osm.org, but could probably be made more visible. As far as APIs for OSM raw data go, Overpass API is the most popular open source option. The osm.org API is neither suitable nor intended for building non-editing apps. When it comes to keeping a rendering database current, of course, most people use the minutely diffs mentioned by rmc.