summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2021-04-20 23:10:48 +0200
committerMarcus Lundblad <ml@update.uu.se>2021-04-26 22:42:57 +0200
commit63720cac2dd78b59c072e11e6d1d66f92596b4bc (patch)
treea6db6106a8cb5e8a976c5cfbd73491b4f11ee1b7
parent09cafc62e5c7865c7ee532789b59c802aec822de (diff)
downloadgnome-maps-63720cac2dd78b59c072e11e6d1d66f92596b4bc.tar.gz
overpass: Use addr:country when set
Use addr:country when constructing input for the PhotonParser (using the countrycode parameter).
-rw-r--r--src/overpass.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/overpass.js b/src/overpass.js
index ea300f80..ee69bf80 100644
--- a/src/overpass.js
+++ b/src/overpass.js
@@ -160,6 +160,8 @@ var Overpass = GObject.registerClass({
properties.postcode = tags['addr:postcode'];
if (tags['addr:city'])
properties.city = tags['addr:city'];
+ if (tags['addr:country'])
+ properties.countrycode = tags['addr:country'];
if (tags.place)
this._setOsmKeyAndValue(properties, tags, 'place');