summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2020-10-05 21:29:20 +0200
committerMarcus Lundblad <ml@update.uu.se>2020-10-05 21:33:51 +0200
commitcf93177205307a0e16d5525cbd1d3b20d56bf534 (patch)
treee22e2195a6891553e7646343b42d4433361f93f4
parent0ce0e927ce5e0963479e5c80d1f9690737c01d85 (diff)
downloadgnome-maps-cf93177205307a0e16d5525cbd1d3b20d56bf534.tar.gz
osmUtils: Add missing tags in updatePlaceFromOSMObjectwip/mlundblad/missing-osm-tag-edit-update
Update the 'toilets', 'internetAccess', and 'religion' properties on the Place instance from the corresponding OSM tags on the object having been edited.
-rw-r--r--src/osmUtils.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmUtils.js b/src/osmUtils.js
index 7ce4b2a2..ad19c7c5 100644
--- a/src/osmUtils.js
+++ b/src/osmUtils.js
@@ -62,6 +62,9 @@ function updatePlaceFromOSMObject(place, object) {
place.wiki = object.get_tag('wikipedia');
place.openingHours = object.get_tag('opening_hours');
place.wheelchair = object.get_tag('wheelchair');
+ place.toilets = object.get_tag('toilets');
+ place.internetAccess = object.get_tag('internet_access');
+ place.religion = object.get_tag('religion');
let altitude = object.get_tag('ele');