rentalmanager/geolocate
Composer 安装命令:
composer require rentalmanager/geolocate
包简介
Geolocate package for easier property geolocate functionality.
README 文档
README
A package made for Rentbits for easier maintenance and modularity of managing rental listings. It includes all migrations, models and relations to run the rental system.
Installation, Configuration and Usage
Installation
Via Composer
composer require rentalmanager/geolocate
Configuration
Once you install the package, it should be automatically discovered by the Laravel. To check this, in your terminal simply run the:
$ php artisan
There you should find the all rm:* commands.
First step after checking is to publish the vendors:
$ php artisan vendor:publish --tag="geolocate"
You can setup the Google Maps API key in the config file or in the .env file. Other settings are available in the config file as well.
Thats it...
Usage
This package is used to geolocate the property through the provided Facade
Facade
This package provides methods for fetching, geolocating records. For example you have a following situation:
(First of you need to use the Facade as )
use RentalManager\Geolocate\Facades\Geolocate;
in your class.
// You have the address in a string $address = '2136 Market St, Philadelphia, PA 19103'; // So you just want to get the geolocation data from it $response = Geolocate::find($address);
Dump the response to see what it retrieves
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2018-09-11