salmanbe/mapquest
Composer 安装命令:
composer require salmanbe/mapquest
包简介
Laravel library to import latitude and longitude by address from Map Quest Api
README 文档
README
This easy to use library imports latitude, longitude coordinates from Map Quest API. You must go to developer.mapquest.com to register and acquire an API key to use with this library. Please note that neither this laravel library is made on behalf of Map Quest nor developer is acting on behalf of Map Quest. There is no coorporation between Map Quest and this library. Map Quest is not responsible for this library. Map Quest API credit goes to Map Quest.
Video Tutorial
Laravel Installation
Install using composer:
composer require salmanbe/mapquest
There is a service provider included for integration with the Laravel framework. This service should automatically be registered else to register the service provider, add the following to the providers array in config/app.php:
Salmanbe\MapQuest\MapQuestServiceProvider::class,
You can also add it as a Facade in config/app.php:
'MapQuest' => Salmanbe\MapQuest\MapQuest::class,
Add 2 lines to config/app.php
'map_quest_url' => env('MAP_QUEST_URL', ''), 'map_quest_key' => env('MAP_QUEST_KEY', ''),
Add 2 lines to .env
MAP_QUEST_URL=https://www.mapquestapi.com/geocoding/v1/address MAP_QUEST_KEY=your_mapquest_api_key
Basic Usage
Add use Salmanbe\MapQuest\MapQuest; or use MapQuest; at top of the class where you want to use it. Then create class instance.
$map = new MapQuest();
Set Address
$map->set($address);
Get Latitude
echo $map->latitude();
Get Longitude
echo $map->longitude();
GET Coordinates
echo $map->coordinates();
GET Status Code
echo $map->status();
Uninstall
First remove Salmanbe\MapQuest\MapQuestServiceProvider::class, and
'MapQuest' => Salmanbe\MapQuest\MapQuest::class, from config/app.php if it was added.
Then Run composer remove salmanbe/mapquest
License
This library is licensed under THE MIT License. Please see License File for more information.
Security contact information
To report a security vulnerability, follow these steps.
salmanbe/mapquest 适用场景与选型建议
salmanbe/mapquest 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「coordinates」 「latitude」 「longitude」 「map quest」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 salmanbe/mapquest 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 salmanbe/mapquest 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 salmanbe/mapquest 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Get distance between two locations using PHP.
Yii2 map input widget. Allows you to select geographcal coordinates via a human-friendly inteface.
Geo calculations library
Metamel Addresses is a polymorphic Laravel package, for address book management. You can add addresses to any eloquent model with ease.
Laravel package providing complete Algerian geo data (69 Wilayas and Communes) with slugs, coordinates and optimized seeders.
Laravel Geocode by address library
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-11