PHP code example of lianginx / baidu-map-sdk
1. Go to this page and download the library: Download lianginx/baidu-map-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lianginx / baidu-map-sdk example snippets
$ak = 'your api key';
$default_service_id = 123456;
$entity = new Entity($ak, $default_service_id);
$entity_name = 'test_entity';
// 新增终端
$entity->add($entity_name);
// 更新终端
$entity->update($entity_name, 'hello world');
// 删除终端
$entity->delete($entity_name);
// 其他接口...