PHPackages                             szjcomo/bdmap - 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. szjcomo/bdmap

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

szjcomo/bdmap
=============

这是一个百度地图组件

v0.0.2(6y ago)0109Apache-2.0PHPPHP &gt;=5.6.0

Since Aug 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/szjcomo/bdmap)[ Packagist](https://packagist.org/packages/szjcomo/bdmap)[ RSS](/packages/szjcomo-bdmap/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

bdmap
=====

[](#bdmap)

这是一个百度地图组件

```
require '../vendor/autoload.php';
use szjcomo\bdmap\BdMap;
$ak = 'xxx';

//地址转经纬度
/*$data = BdMap::toLatlng('永和市场','河源市',$ak);
print_r($data);
*/

$data = file_get_contents('points1.json');
$options = json_decode($data,true);

//搜索一个坐标点是否在一组坐标点之内
$point = ['lat'=>23.758382,'lng'=>114.703666];
$result = BdMap::searchPoint($point,$options);
var_dump($result);

//经纬度转地址
/*$result = \szjcomo\bdmap\BdMap::toAddress($data['data']['location']['lat'],$data['data']['location']['lng'],$ak);
print_r($result);*/

//计算距离
/*$result = BdMap::distance('23.766355,114.697415','31.212721803292,104.96967318351',$ak);
print_r($result);*/

//获取实时路况
/*$result = BdMap::traffic('东二环','北京市',$ak);
print_r($result);*/

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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 ~99 days

Total

2

Last Release

2352d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ef6302d78be1eee555959fb1e9eb43578ad83603c266b0be073ada7fe015528?d=identicon)[szjcomo](/maintainers/szjcomo)

---

Top Contributors

[![luo200619](https://avatars.githubusercontent.com/u/20290887?v=4)](https://github.com/luo200619 "luo200619 (2 commits)")[![szjcomo](https://avatars.githubusercontent.com/u/54160515?v=4)](https://github.com/szjcomo "szjcomo (1 commits)")

### Embed Badge

![Health badge](/badges/szjcomo-bdmap/health.svg)

```
[![Health](https://phpackages.com/badges/szjcomo-bdmap/health.svg)](https://phpackages.com/packages/szjcomo-bdmap)
```

###  Alternatives

[prismjs/prism

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

12.9k65.9k4](/packages/prismjs-prism)[sciactive/pnotify

Beautiful JavaScript notifications.

3.6k6.4k](/packages/sciactive-pnotify)[mydnic/volet

A fully featured feedback component for Laravel, gather user feedbacks, chat, etc

41015.1k2](/packages/mydnic-volet)[questocat/laravel-referral

A Referral System With Laravel

13887.6k](/packages/questocat-laravel-referral)[burgov/key-value-form-bundle

A form type for managing key-value pairs

44579.4k10](/packages/burgov-key-value-form-bundle)[code4business/freeproduct2

Adds a sales rule action to add a product to cart. Can be used to create sales rules to add gifts to cart.

65167.1k](/packages/code4business-freeproduct2)

PHPackages © 2026

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