[gnome-maps/gnome-3-36] overpass: Recognize contact:website and contact:phone tags.



commit ecf2f860c775202005f50804bff5981976747ae5
Author: Jonathan Brielmaier <jonathan brielmaier web de>
Date:   Fri Mar 6 15:28:09 2020 +0100

    overpass: Recognize contact:website and contact:phone tags.
    
    The contact:* tags are still widely used so we should support them.

 src/overpass.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/overpass.js b/src/overpass.js
index 37781a88..af1ea389 100644
--- a/src/overpass.js
+++ b/src/overpass.js
@@ -204,8 +204,12 @@ var Overpass = GObject.registerClass({
             place.name = element.tags.name;
         if (element.tags.population)
             place.population = element.tags.population;
+        if (element.tags['contact:website'])
+            place.website = element.tags['contact:website'];
         if (element.tags.website)
             place.website = element.tags.website;
+        if (element.tags['contact:phone'])
+            place.phone = element.tags['contact:phone'];
         if (element.tags.phone)
             place.phone = element.tags.phone;
         if (element.tags.wikipedia)


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