PHPackages                             pipiqiang/latlong - 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. pipiqiang/latlong

ActiveLibrary

pipiqiang/latlong
=================

Latitude &amp; Longitude selector

v1.3(6y ago)219MITPHPPHP &gt;=7.0.0

Since Jan 7Pushed 6y agoCompare

[ Source](https://github.com/ycq3/latlong)[ Packagist](https://packagist.org/packages/pipiqiang/latlong)[ Docs](https://github.com/laravel-admin-ext/latlong)[ RSS](/packages/pipiqiang-latlong/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Latitude and longitude selector
===============================

[](#latitude-and-longitude-selector)

这个扩展用来帮助你在form表单中选择经纬度，用来替代`Laravel-admin`中内置的`Form\Field\Map`组件, 组件支持的地图包括`Google map`、`百度地图`、`高德地图`、`腾讯地图`、`Yadex map`.

This extension is used to help you select the latitude and longitude in the form, which is used to replace the `Laravel-admin` built in `Form\Field\Map` component. The supported maps include `Google map`, `Baidu map`, `AMap`, `Tencent Map`, `Yadex map`.

Installation
------------

[](#installation)

```
composer require laravel-admin-ext/latlong -vvv
```

Configuration
-------------

[](#configuration)

Open `config/admin.php` and add the following configuration to the extensions section:

```
    'extensions' => [

        'latlong' => [

            // Whether to enable this extension, defaults to true
            'enable' => true,

            // Specify the default provider
            'default' => 'google',

            // According to the selected provider above, fill in the corresponding api_key
            'providers' => [

                'google' => [
                    'api_key' => '',
                ],

                'yadex' => [
                    'api_key' => '',
                ],

                'baidu' => [
                    'api_key' => 'xck5**************************dx',
                ],

                'tencent' => [
                    'api_key' => 'VV***-*****-*****-*****-*****-**BBT',
                ],

                'amap' => [
                    'api_key' => '3693**************************fb',
                ],

                'here' => [
                    'app_key' => 'ge*************************************WeD0'
                ],
            ]
        ]
    ]
```

Usage
-----

[](#usage)

Suppose you have two fields `latitude` and `longitude` in your table that represent latitude and longitude, then use the following in the form:

```
$form->latlong('latitude', 'longitude', 'Position');

// Set the map height
$form->latlong('latitude', 'longitude', 'Position')->height(500);

// Set the map zoom
$form->latlong('latitude', 'longitude', 'Position')->zoom(16);

// Set default position
$form->latlong('latitude', 'longitude', 'Position')->default(['lat' => 90, 'lng' => 90]);
```

Use in show page

```
$show->field('Position')->latlong('lat_column', 'long_column', $height = 400, $zoom = 16);
```

License
-------

[](#license)

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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 ~75 days

Total

5

Last Release

2383d ago

### Community

Maintainers

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

---

Top Contributors

[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (8 commits)")[![sicaboy](https://avatars.githubusercontent.com/u/2426114?v=4)](https://github.com/sicaboy "sicaboy (3 commits)")[![Hans941](https://avatars.githubusercontent.com/u/27858182?v=4)](https://github.com/Hans941 "Hans941 (1 commits)")

---

Tags

extensionlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pipiqiang-latlong/health.svg)

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

###  Alternatives

[laravel-admin-ext/grid-lightbox

Turn your grid into a lightbox &amp; gallery

58180.9k2](/packages/laravel-admin-ext-grid-lightbox)[laravel-admin-ext/wang-editor

wangEditor extension for laravel-admin

6283.4k](/packages/laravel-admin-ext-wang-editor)[laravel-admin-ext/sparkline

Integrates jQuery sparkline into laravel-admin

161.1k](/packages/laravel-admin-ext-sparkline)

PHPackages © 2026

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