Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

623 B
Raw Blame
<?php

declare(strict_types=1);

namespace HiEvents\Services\Infrastructure\Geo;

use HiEvents\Services\Infrastructure\Geo\DTO\GeoPlaceDTO;
use HiEvents\Services\Infrastructure\Geo\DTO\GeoSuggestionDTO;

interface GeoProviderInterface
{
    /**
     * @return array<GeoSuggestionDTO>
     */
    public function autocomplete(string $query, ?string $locale = null, ?string $country = null): array;

    public function getPlaceDetails(string $providerPlaceId, ?string $locale = null): ?GeoPlaceDTO;

    public function getCachedRawPlaceDetails(?string $providerPlaceId): ?array;

    public function isAvailable(): bool;
}