[gnome-maps/wip/mlundblad/additional-place-icons: 3/5] photonParser: Set osmKey and osmValue on parsed place
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/additional-place-icons: 3/5] photonParser: Set osmKey and osmValue on parsed place
- Date: Thu, 8 Apr 2021 20:48:27 +0000 (UTC)
commit 0ee9ed507765fc8a0badef8b89e9b962f354c2a0
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]