diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-30 15:59:06 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-30 16:57:43 +0100 |
commit | 6883fc1c9bb0630d83049582942e8ac3348bcaef (patch) | |
tree | 122a134deaa0e180105bae1c84294e806f4dbb74 /tools | |
parent | b42d6afa5a25c6329c2199ce9962a72388f905ac (diff) | |
download | algeria-6883fc1c9bb0630d83049582942e8ac3348bcaef.tar.gz |
Include zone in full name.
SHOUTY cities.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gendata.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index aeaab80..55e234a 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -17,7 +17,12 @@ let next_location_id = 0 function def_area(id, name, type, zone) { let loc = next_location_id++ locations[id] = loc - areas.push({loc, id, name, type, zone}) + if (type && type !== COUNTRY && type !== URBAN) + areas.push({loc, id, full_name: id + " " + name, name, type, zone}) + else if (type === URBAN) + areas.push({loc, id, full_name: id, name, type, zone}) + else + areas.push({loc, id, full_name: name, name, type, zone}) if (zone) { if (!(zone in zone_areas)) { zone_areas[zone] = [] |