behlulbozal/location-search 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Tourist-Male-Holding-Map

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 ;)

BEHLÜL BOZAL

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固