diff options
-rw-r--r-- | doc/import/parser.rb | 6 |
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 |