app/models/apidae/apidae_data_parser.rb in apidae-1.2.29 vs app/models/apidae/apidae_data_parser.rb in apidae-1.2.30

- old
+ new

@@ -220,10 +220,10 @@ computed_address << address_hash[:adresse1] unless address_hash[:adresse1].blank? computed_address << address_hash[:adresse2] unless address_hash[:adresse2].blank? computed_address << address_hash[:adresse3] unless address_hash[:adresse3].blank? end loc_data.merge!({address: computed_address}) - loc_data.merge!({place: type_data_hash[:nomLieu]}) if type_data_hash + loc_data.merge!({place: (type_data_hash ? type_data_hash[:nomLieu] : nil) || address_hash[:nomDuLieu]}) geoloc_details = location_hash[:geolocalisation] if geoloc_details && geoloc_details[:valide] && geoloc_details[:geoJson] loc_data[:latitude] = geoloc_details[:geoJson][:coordinates][1] loc_data[:longitude] = geoloc_details[:geoJson][:coordinates][0] end \ No newline at end of file