Try to use local region name, even though I'm not sure it is wise

sql-rework
Tomasz Golinski 2020-05-03 00:18:40 +02:00
rodzic 5a6c76fc6a
commit fdd7652e52
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -46,6 +46,8 @@ std::map<std::string, ContourData*> Region::parse_geojson(const std::string& jso
for (auto& el : j["features"].items()) {
if (el.value()["properties"]["alltags"].count("short_name") > 0)
name = el.value()["properties"]["alltags"]["short_name"];
else if (el.value()["properties"].count("localname") > 0)
name = el.value()["properties"]["localname"];
else if (el.value()["properties"].count("name") > 0)
name = el.value()["properties"]["name"];
else {