behlulbozal/location-search
Composer 安装命令:
composer require behlulbozal/location-search
包简介
It's a package location search for Laravel
README 文档
README
Features
- Find a location in a circle which one you give radius meters.
- Find the distance location from anotrher location.
- Get the Google Maps link. Just give the lat, long. Take whole link.
Location Search - PHP - Laravel
Getting Started
Installing
composer require behlulbozal/location-search
Migration Types
Add this columns to migration with these names and types.
// Example Model Migration $table->double('latitude')->nullable(); $table->double('longitude')->nullable();
Starting
use behlulbozal\LocationSearch\Location; Location::FindInCircle($lat, $long, $radius, Example::class);
Usage
Find In A Circle
Location::FindInCircle($latitude, $longitude, $radius, Example::class);
Get Distance Between Two Location
Location::GetDistance($latitude1, $longitude1, $latitude2, $longitude2);
Get Google Link
Location::GoogleLink($latitude1, $longitude1);
Contribution
Get Google Link
You can create PR for upgrades. Open issues or solve the issues ;)
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-09
