18 Star 75 Fork 22

她和她的猫 / baidu-map

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

🗺️ 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

MIT License Copyright (c) 2020 her-cat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于 MIT 协议开源的百度地图 SDK,目前已支持地点检索、地点输入提示、批量算路、路线规划、正/逆地理编码、IP定位、坐标转换、静态图等 Web 服务 API 。 展开 收起
PHP
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

搜索帮助

14c37bed 8189591 565d56ea 8189591