feat: import points côtiers depuis OpenStreetMap (Overpass API)

This commit is contained in:
Gwadaking
2026-04-09 00:31:40 -04:00
parent 3c2d174edb
commit 3a69283983
3 changed files with 219 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ class CoastalPoint
#[Groups(['spot:read'])]
private string $region;
#[ORM\Column(length: 30, nullable: true, unique: true)]
private ?string $osmId = null;
/** @var Collection<int, ImpactScore> */
#[ORM\OneToMany(targetEntity: ImpactScore::class, mappedBy: 'coastalPoint')]
private Collection $impactScores;
@@ -91,6 +94,8 @@ class CoastalPoint
public function setType(string $type): static { $this->type = $type; return $this; }
public function getRegion(): string { return $this->region; }
public function setRegion(string $region): static { $this->region = $region; return $this; }
public function getOsmId(): ?string { return $this->osmId; }
public function setOsmId(?string $osmId): static { $this->osmId = $osmId; return $this; }
/** @return Collection<int, ImpactScore> */
public function getImpactScores(): Collection { return $this->impactScores; }