18 Star 76 Fork 22

她和她的猫 / baidu-map

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
她和她的猫 提交于 2019-10-21 23:51 . 更新文档地址及 Features

🗺️ baidu-map

可能是我用过的最好用的百度地图 SDK 了

Build Status StyleCI build status

环境要求

  • PHP >= 5.6
  • Composer
  • fileinfo 拓展(获取静态图需要用到)

安装

$ composer require "her-cat/baidu-map" -vvv

单元测试

$ composer test

使用

<?php

use HerCat\BaiduMap\Factory;

$config = [
    'ak' => 'your ak',
//    'sk' => 'your sk',
    'log' => [
        'file' => './baidu-map.log'
    ],
    'response_type' => 'array',
];

$webApi = Factory::webApi($config);

$result = $webApi->timezone->get('116.30815', '40.056878');

//    Array
//    (
//        [status] => 0
//        [timezone_id] => Asia/Shanghai
//        [dst_offset] => 0
//        [raw_offset] => 28800
//    )

文档

详细文档

Features

参考

License

MIT

PHP
1
https://gitee.com/her-cat/baidu-map.git
git@gitee.com:her-cat/baidu-map.git
her-cat
baidu-map
baidu-map
master

搜索帮助