diff options
author | Marcus Lundblad <ml@update.uu.se> | 2021-04-20 23:10:48 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@update.uu.se> | 2021-04-26 22:42:57 +0200 |
commit | 63720cac2dd78b59c072e11e6d1d66f92596b4bc (patch) | |
tree | a6db6106a8cb5e8a976c5cfbd73491b4f11ee1b7 | |
parent | 09cafc62e5c7865c7ee532789b59c802aec822de (diff) | |
download | gnome-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.js | 2 |
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'); |