getCityCoords added

remove 'noise_' on every value
This commit is contained in:
2023-11-28 15:12:20 +00:00
parent c6b56207dd
commit c10001754f
8 changed files with 74 additions and 22 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ const DEFAULT_DISTANCE = 10
// Value to use fpr map
const value4map = [
{ typ: 'noise', value: 'noise_LA_max'},
{ typ: 'noise', value: 'LA_max'},
{ typ: 'pm', value: 'P1'},
{ typ: 'thp', value: 'temperature'},
{ typ: 'radioactivity', value: 'counts_per_minute'},
@@ -29,7 +29,7 @@ const getValue4Map = (t) => {
const vtype2measurement = {
P1: 'pm', P2: 'pm', P0: 'pm',
temperature: 'thp', humidity: 'thp', pressure: 'thp',
noise_LAeq: 'noise',
LAeq: 'noise',
counts_per_minute: 'radioactivity'
};