[gnome-maps/wip/mlundblad/additional-place-icons: 2/4] photonParser: Set osmKey and osmValue on parsed place




commit f8b2e96be56cf0a0401bf597fa35d6818bba5fe1
Author: Marcus Lundblad <ml update uu se>
Date:   Tue Apr 6 21:56:56 2021 +0200

    photonParser: Set osmKey and osmValue on parsed place

 src/photonParser.js | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/photonParser.js b/src/photonParser.js
index 17aff883..3fcdbf88 100644
--- a/src/photonParser.js
+++ b/src/photonParser.js
@@ -86,6 +86,12 @@ function parsePlace(latitude, longitude, properties) {
     if (properties.extent)
         params.bounding_box = _parseBoundingBox(properties.extent);
 
+    if (properties.osm_key)
+        params.osmKey = properties.osm_key;
+
+    if (properties.osm_value)
+        params.osmValue = properties.osm_value;
+
     return new Place.Place(params);
 }
 


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