feat: import points côtiers depuis OpenStreetMap (Overpass API)
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user