				.finally(() => this.set('probesLoading', false));
		},
		groupProbes (probes) {
			// group probes by Coordinates
			return probes.reduce((groupedByCoords, probe) => {
				let coords = `${probe.location.latitude}, ${probe.location.longitude}`;

				if (!Object.hasOwn(groupedByCoords, coords)) {
					groupedByCoords[coords] = [];
				}

				groupedByCoords[coords].push(probe);

				return groupedByCoords;
			}, {});
		},
	};
</script>
