[gnome-maps/wip/mlundblad/missing-osm-tag-edit-update] osmUtils: Add missing tags in updatePlaceFromOSMObject




commit cf93177205307a0e16d5525cbd1d3b20d56bf534
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Oct 5 21:29:20 2020 +0200

    osmUtils: Add missing tags in updatePlaceFromOSMObject
    
    Update the 'toilets', 'internetAccess', and 'religion'
    properties on the Place instance from the corresponding
    OSM tags on the object having been edited.

 src/osmUtils.js | 3 +++
 1 file changed, 3 insertions(+)
---
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');
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]