baserCMS クラスリファレンス

BcGmaps
in package

Class BcGmaps

Table of Contents

Constants

GMAPS_API_BASE_URL  = "https://maps.googleapis.com/maps/api/geocode/xml"
APIのベースとなるURL
RETRY_INTERVAL  = 250
接続試行の間隔(ミリ秒)
RETRY_TIMES  = 5
接続試行回数

Properties

$_gmapsApiUrl  : string
API URL

Methods

__construct()  : void
Construct
getLocation()  : array<string|int, mixed>|null
ロケーション情報を取得する

Constants

GMAPS_API_BASE_URL

APIのベースとなるURL

public string GMAPS_API_BASE_URL = "https://maps.googleapis.com/maps/api/geocode/xml"

RETRY_INTERVAL

接続試行の間隔(ミリ秒)

public int RETRY_INTERVAL = 250

RETRY_TIMES

接続試行回数

public int RETRY_TIMES = 5

Properties

$_gmapsApiUrl

API URL

protected string $_gmapsApiUrl

Methods

__construct()

Construct

public __construct(string $apiKey) : void
Parameters
$apiKey : string
Tags
checked
noTodo

getLocation()

ロケーション情報を取得する

public getLocation(string $address) : array<string|int, mixed>|null
Parameters
$address : string
Tags
checked
noTodo
Return values
array<string|int, mixed>|null

        
On this page

Search results