diff --git a/simulator.py b/simulator.py index 430b199a..96854eac 100644 --- a/simulator.py +++ b/simulator.py @@ -138,8 +138,10 @@ SENSOR_NAMES: dict[str, list[str]] = { def _gen_locs(stype: str, count: int) -> list[dict]: locs = [] for i in range(count): - lat = BASE_LAT + random.uniform(-0.05, 0.05) - lon = BASE_LON + random.uniform(-0.05, 0.05) + # Coordonnées précises Martinique (terre ferme uniquement) + # Réduit à ±0.02 pour éviter la mer + lat = BASE_LAT + random.uniform(-0.02, 0.02) + lon = BASE_LON + random.uniform(-0.02, 0.02) names = SENSOR_NAMES.get(stype, [stype]) locs.append({ "lat": round(lat, 6),