From 64764fb9fac0227f8e0443e7c7519d73aec275b9 Mon Sep 17 00:00:00 2001 From: Murilo Ijanc Date: Sun, 26 Jul 2026 14:58:55 -0300 Subject: Initial import --- src/Geo.php | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 src/Geo.php (limited to 'src/Geo.php') diff --git a/src/Geo.php b/src/Geo.php new file mode 100644 index 0000000..c677622 --- /dev/null +++ b/src/Geo.php @@ -0,0 +1,94 @@ +precisao === 'logradouro'; + } + + /** + * @return array{lat: float, lon: float, raio_m: int, precisao: string} + */ + public function toArray(): array + { + return [ + 'lat' => $this->lat, + 'lon' => $this->lon, + 'raio_m' => $this->raio_m, + 'precisao' => $this->precisao, + ]; + } +} -- cgit v1.3