I have a basic tile server running using the openstreetmap-carto style configured according to the tutorial on switch2osm. I was wondering is there a way to edit the style file so that english characters are used for all places in the world as opposed to each country's localized alphabet? Thanks in advance for any help. asked 04 Oct '18, 23:59 coderunner |
Hi, You can look at this internationalization kit for OSM Carto: https://github.com/giggls/osml10n The German fork offers it in a full form here: https://github.com/giggls/openstreetmap-carto-de/tree/upstream+l10n and here's how does it look like: answered 05 Oct '18, 00:44 kocio 2
This is the best solution. A more primitive approach is to simply replace queries for the "name" column with
(05 Oct '18, 07:56)
Frederik Ramm ♦
Another option, that requires minimal changes to the map style, is using database views that incorporate the aforementioned
(05 Oct '18, 07:57)
Frederik Ramm ♦
Awesome thanks! That looks exactly like what I need. I was looking into how it works a little bit, and I compared it with the master branch here: https://github.com/gravitystorm/openstreetmap-carto/compare/master...giggls:upstream+l10n There's a lot of references to localized_name_second but don't see it defined anywhere. Is that a field that exists in the planet.osm file?
(05 Oct '18, 20:49)
coderunner
|