PHP Класс KamranAhmed\Geocode\Geocode

Автор: Kamran Ahmed ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $key = '' ) Constructor
get ( $address ) : boolean | object Sends request to the passed Google Geocode API URL and fetches the address details and returns them
getServiceUrl ( ) : string Returns the private $serviceUrl

Описание методов

__construct() публичный Метод

Constructor
public __construct ( string $key = '' )
$key string Google Maps Geocoding API key

get() публичный Метод

Sends request to the passed Google Geocode API URL and fetches the address details and returns them
public get ( $address ) : boolean | object
$address
Результат boolean | object false if no data is returned by URL and the detail otherwise

getServiceUrl() публичный Метод

Returns the private $serviceUrl
public getServiceUrl ( ) : string
Результат string The service URL