pel/askgeo-api
Composer 安装命令:
composer require pel/askgeo-api
包简介
A class to consume askgeo's API.
关键字:
README 文档
README
askgeo-api
About
A PSR-4 PHP class to consume askgeo's API.. (https://askgeo.com)
Initialize
include('AskGeoAPI.php'); // ! Use your own account id and api key. ! $account_id = '1165'; $api_key = 'g1d11a5117a4143be0f5fge5a9e33df4e9103deb5a12658d22512f2a04ba3nk6'; $format = 'obj'; $secure = true; $curl_options = array(); $api = new Pel\Helper\AskGeoAPI($account_id, $api_key, $format, $secure, $curl_options);
Calls
General Call
$databases = 'TimeZone'; $points = array(45.485169, -73.699036); $api->get($databases, $points); // Optional callback and datetime. $api->get($databases, $points, $callback, $datetime);
TimeZone Call
$points = array([45.485169, -73.699036], [10.5435, -99.32]); $api->getTimeZone($points); // Optional callback and datetime. $api->getTimeZone($points, $callback, $datetime);
Other Specialized Calls
Like the TimeZone call, askgeo-api can also call all the available databases directly. For more information, take a look at the source code.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-01