deka6pb/yii2-geocoder
Composer 安装命令:
composer require deka6pb/yii2-geocoder
包简介
Yii 2 Geocoder with Yandex Geocoder API and Google Maps API
README 文档
README
Description
This module need to find the coordinates by address using The Google Maps Geocoding API or Yandex Geocoder API.
Installation
This document will guide you through the process of installing Yii2-geocoder using composer.
Download Yii2-geocoder using composer
Add "deka6pb/yii2-geocoder": "*" to the require section of your composer.json file and run
composer update to download and install Yii2-autoparser.
Geocoders:
- Geocoder::TYPE_GOOGLE
- Geocoder::TYPE_YANDEX
Methods:
findByAddress($address, array $params = [], $results = 10)
findOneByAddress($address, array $params = [])
findByPoint(Point $point, $kind, Point $radius = null, array $params = [], $results = 10)
findByOnePoint(Point $point, $kind, Point $radius = null, array $params = [])
For example:
$address = "2707 Congress St., San Diego, CA 92110";
/* @var CoderInterface $coder */
$coder = Geocoder::build(Geocoder::TYPE_GOOGLE);
$object = $coder::findOneByAddress($address);
统计信息
- 总下载量: 2.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-04