ajout propriétés de rue et siret aux lieux, champs en plus après envoi

This commit is contained in:
Tykayn 2025-06-09 00:11:16 +02:00 committed by tykayn
parent b9257d34fd
commit 3ccfd732e7
17 changed files with 361 additions and 56 deletions

View file

@ -91,6 +91,15 @@ class Place
#[ORM\Column(nullable: true)]
private ?int $lon = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $street = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $housenumber = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $siret = null;
public function getMainTag(): ?string
{
return $this->main_tag;
@ -191,6 +200,9 @@ class Place
['key' => 'website', 'setter' => 'setHasWebsite', 'source' => $overpass_data['tags'] ?? []],
['key' => 'wheelchair', 'setter' => 'setHasWheelchair', 'source' => $overpass_data['tags'] ?? []],
['key' => 'note', 'setter' => 'setHasNote', 'source' => $overpass_data['tags'] ?? []],
['key' => 'siret', 'setter' => 'setSiret', 'source' => $overpass_data['tags'] ?? []],
['key' => 'addr:street', 'setter' => 'setStreet', 'source' => $overpass_data['tags'] ?? []],
['key' => 'addr:housenumber', 'setter' => 'setHousenumber', 'source' => $overpass_data['tags'] ?? []],
];
foreach ($mapping as $map) {
@ -531,4 +543,40 @@ class Place
return $this;
}
public function getStreet(): ?string
{
return $this->street;
}
public function setStreet(?string $street): static
{
$this->street = $street;
return $this;
}
public function getHousenumber(): ?string
{
return $this->housenumber;
}
public function setHousenumber(?string $housenumber): static
{
$this->housenumber = $housenumber;
return $this;
}
public function getSiret(): ?string
{
return $this->siret;
}
public function setSiret(?string $siret): static
{
$this->siret = $siret;
return $this;
}
}