[gnome-maps/gnome-3-38] osmUtils: Add missing tags in updatePlaceFromOSMObject
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/gnome-3-38] osmUtils: Add missing tags in updatePlaceFromOSMObject
- Date: Mon, 5 Oct 2020 20:25:20 +0000 (UTC)
commit d201591792907d3977c8418cb322c3576588e4df
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]