lt-25/geocode
Composer 安装命令:
composer require lt-25/geocode
包简介
A powerful Laravel package for geocoding and reverse geocoding using maps.co API
README 文档
README
A powerful and elegant Laravel package for geocoding and reverse geocoding using the location iq API.
Features
✨ Easy to Use - Simple and intuitive API 🌍 Global Coverage - Works worldwide 🔄 Reverse Geocoding - Convert coordinates to addresses 🏙️ Location Search - Find cities, states, and addresses ⚡ Caching Support - Cache results to reduce API calls 📝 Comprehensive Logging - Built-in logging for debugging 🔒 Type Safe - Full PHP 7.4+ and 8.0+ support ✅ Laravel 7-11 - Works with all modern Laravel versions
Installation
Install via Composer:
composer require lt-25/geocode
Setup
After installation you'll want to publish the configuration and set a couple of environment variables.
php artisan vendor:publish --provider="Lalit\Geocode\Providers\GeocodeServiceProvider" --tag="geocode-config"
This will copy config/geocode.php to your application's config directory. The package reads the following env values (you can add them to your .env file):
# Choose provider (default: location-iq) GEOCODE_PROVIDER=location-iq # API credentials for the Maps.co/LocationIQ service GEOCODE_MAPS_CO_KEY=your_api_key_here GEOCODE_MAPS_CO_URL=https://api.locationiq.com/v1/autocomplete # Optional tuning GEOCODE_TIMEOUT=15 GEOCODE_CACHE_ENABLED=false GEOCODE_CACHE_TTL=3600 GEOCODE_CACHE_STORE=default GEOCODE_RATE_LIMIT=false GEOCODE_RATE_LIMIT_REQUESTS=60 GEOCODE_RATE_LIMIT_PERIOD=60 GEOCODE_DEFAULT_LIMIT=50 # Logging (enabled by default) GEOCODE_LOGGING=true GEOCODE_LOG_CHANNEL=single
You can adjust these values to suit your application.
lt-25/geocode 适用场景与选型建议
lt-25/geocode 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 03 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「geocoding」 「maps」 「laravel」 「location」 「coordinates」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 lt-25/geocode 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lt-25/geocode 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 lt-25/geocode 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Maps in minutes. Powered by the Google Maps API.
A Laravel Nova Google Maps Field.
Yii2 map input widget. Allows you to select geographcal coordinates via a human-friendly inteface.
GISCO Geocoding Provider for Geocoder PHP.
Laravel integration for Nominatim Geocoding API Client
Google Maps PHP SDK.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 34
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-03