[gnome-maps/wip/mlundblad/additional-place-icons: 2/5] place: Add osmKey and osmValue parameters




commit 8fb519c2e6c32c0af368b0f79ffe0c4f2968e38b
Author: Marcus Lundblad <ml update uu se>
Date:   Tue Apr 6 21:51:33 2021 +0200

    place: Add osmKey and osmValue parameters
    
    Add parameters for most significant OSM
    type, corresponding to the osm_key/osm_value
    parameters from the Photon geocoder response.

 src/place.js | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/place.js b/src/place.js
index 299b6ef5..3616c682 100644
--- a/src/place.js
+++ b/src/place.js
@@ -100,6 +100,12 @@ class Place extends Geocode.Place {
         this._nativeName = params.nativeName;
         delete params.nativeName;
 
+        this._osmKey = params.osmKey;
+        delete params.osmKey;
+
+        this._osmValue = params.osmValue;
+        delete params.osmValue;
+
         if (params.place) {
             params = { osm_id: params.place.osm_id,
                        osm_type: params.place.osm_type,


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