[gnome-maps/gnome-40] overpass: Use addr:country when set
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/gnome-40] overpass: Use addr:country when set
- Date: Tue, 27 Apr 2021 20:21:36 +0000 (UTC)
commit 72e17855d1ec08b8d3dbf53da82090573fa327d3
Author: Marcus Lundblad <ml update uu se>
Date: Tue Apr 20 23:10:48 2021 +0200
overpass: Use addr:country when set
Use addr:country when constructing input
for the PhotonParser (using the countrycode
parameter).
src/overpass.js | 2 ++
1 file changed, 2 insertions(+)
---
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');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]