PHPackages                             aoxiang/baidu-yingyan - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aoxiang/baidu-yingyan

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aoxiang/baidu-yingyan
=====================

0.0.4(5y ago)13073MITPHP

Since Apr 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aoxiang594/baidu-yingyan)[ Packagist](https://packagist.org/packages/aoxiang/baidu-yingyan)[ RSS](/packages/aoxiang-baidu-yingyan/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

百度鹰眼轨迹Web服务API
--------------

[](#百度鹰眼轨迹web服务api)

[![StyleCI build status](https://camo.githubusercontent.com/421d17bc5134b02cbcba63c87a3ba8f82a3a692a5b0c8854f5208bcfe4fba061/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3235343737383235352f736869656c64)](https://camo.githubusercontent.com/421d17bc5134b02cbcba63c87a3ba8f82a3a692a5b0c8854f5208bcfe4fba061/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3235343737383235352f736869656c64)

百度接口总览

**注意**这个package只对接了`终端管理`、`轨迹上传`接口，其他围栏、轨迹纠偏等没有对接。

github地址

#### 使用方法

[](#使用方法)

通过composer安装

```
composer require aoxiang/baidu-yingyan
```

传入对应的service\_id\\AK

```
$ak        = 'yU1QNKOLqn7FqZMjLLxqI2dF';
$server_id = '220271';
$yingyan   = new YingYan($ak, $server_id);
//添加终端
$res = $yingyan->addEntity('aoxiang-test');
//删除终端
$res = $yingyan->deleteEntity('aoxiang-test-165');
//修改终端
$res = $yingyan->updateEntity('123456', '测试修改描述','');
//获取终端列表
$res = $yingyan->getEntityList();
//为终端名为123456中终端，上传轨迹点
$res = $yingyan->addTrack('123456', 39.220121, 116.46365, 1586586922, 'bd09ll',
    ['speed'     => 100,
     'direction' => '23',
     'height'    => 300,
    ]);
//批量上传轨迹点
//先造一些假数据
$item = [
    'entity_name'      => '123456',
    'latitude'         => 30.691794,
    'longitude'        => 117.860935,
    'loc_time'         => 1586574000,
    'coord_type_input' => 'bd09ll',
    'speed'            => 100,
    'direction'        => '23',
    'height'           => 300,
];
for ($i = 0; $i < 20; $i++) {
    $item   = [
        'entity_name'      => '123456',
        'latitude'         => $item['latitude'] + $i * 0.0001 * rand(1, 100),
        'longitude'        => $item['longitude'] + $i * 0.0001 * rand(1, 100),
        'loc_time'         => strval($item['loc_time'] + $i * rand(1, 60)),
        'coord_type_input' => 'bd09ll',
        'speed'            => 100,
        'direction'        => '23',
        'height'           => 300,
    ];
    $list[] = $item;
}
$res = $yingyan->addTrackList( $list);
```

更多内容、详细参数等请参考官方文档及这个鬼源码，这源码简直是整个GitHub最简单的package

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

4

Last Release

2178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd64200aa6a7471bc379dbe2ec71a3a03933ae2f96886c4fea88ea2e76d04309?d=identicon)[aoxiang594](/maintainers/aoxiang594)

---

Top Contributors

[![9yearfish](https://avatars.githubusercontent.com/u/11186536?v=4)](https://github.com/9yearfish "9yearfish (11 commits)")[![Bearxw](https://avatars.githubusercontent.com/u/29968369?v=4)](https://github.com/Bearxw "Bearxw (1 commits)")

---

Tags

baidumapcomposer

### Embed Badge

![Health badge](/badges/aoxiang-baidu-yingyan/health.svg)

```
[![Health](https://phpackages.com/badges/aoxiang-baidu-yingyan/health.svg)](https://phpackages.com/packages/aoxiang-baidu-yingyan)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
