PHP 클래스 KamranAhmed\Geocode\Geocode

저자: Kamran Ahmed ([email protected])
파일 보기 프로젝트 열기: kamranahmedse/php-geocode

공개 메소드들

메소드 설명
__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