承接 deka6pb/yii2-geocoder 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-04