aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-06 16:39:43 +0200
committerhellekin <hellekin@cepheide.org>2020-10-06 16:39:43 +0200
commita53257eca445c30ad6d65ad2f0b00c599f9052ac (patch)
treed174f9a018ecb5260ac5145fece064cda38c0136 /doc
parent176d5171ee00e352e7e8bda313eabead7fd20fbe (diff)
downloadincommon-map-a53257eca445c30ad6d65ad2f0b00c599f9052ac.tar.gz
Update parser fields
mail -> email since it's unambiguous Also changed 'Concertes' source to 'ConcertES' since it is the group name on IN COMMON and the name of the Agent, to facilitate data import.
Diffstat (limited to 'doc')
-rw-r--r--doc/import/parser.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/import/parser.rb b/doc/import/parser.rb
index 1c5d217..06566d7 100644
--- a/doc/import/parser.rb
+++ b/doc/import/parser.rb
@@ -28,7 +28,7 @@ class Parser
new_item["properties"]["entry_number"] = data[i]["pk"]
new_item["properties"]["phone_number"] = data[i]["fields"]["phone"]
new_item["properties"]["website"] = data[i]["fields"]["web"]
- new_item["properties"]["mail"] = data[i]["fields"]["email"]
+ new_item["properties"]["email"] = data[i]["fields"]["email"]
new_item["properties"]["address"] = data[i]["fields"]["address"]
new_item["properties"]["city"] = "" #No equivalent in Dewey database
new_item["properties"]["postal_code"] = "" #No equivalent in Dewey database
@@ -59,12 +59,12 @@ class Parser
new_item["properties"]["entry_number"] = data[i]["NumEntr"]
new_item["properties"]["phone_number"] = coord[i]["Tel"]
new_item["properties"]["website"] = coord[i]["Web"]
- new_item["properties"]["mail"] = coord[i]["Email"]
+ new_item["properties"]["email"] = coord[i]["Email"]
new_item["properties"]["address"] = coord[i]["Adresse"]
new_item["properties"]["city"] = data[i]["INS_COMMUNE"]
new_item["properties"]["postal_code"] = coord[i]["Code postal"]
new_item["properties"]["categories"] = []
- new_item["properties"]["source"] = "Concertes"
+ new_item["properties"]["source"] = "ConcertES"
new_item["properties"]["srid"] = "4326" #Not precised in Concertes database
@list_of_locations["features"].push(new_item)
i += 1