Giter VIP home page Giter VIP logo

azharrizky8's Introduction

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

azharrizky8's People

Contributors

webspellerh0zis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.