2017 © Pedro Peláez
 

yii2-extension yii2-geocoder

Yii 2 Geocoder with Yandex Geocoder API and Google Maps API

image

deka6pb/yii2-geocoder

Yii 2 Geocoder with Yandex Geocoder API and Google Maps API

  • Monday, May 16, 2016
  • by deka6pb
  • Repository
  • 2 Watchers
  • 4 Stars
  • 500 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

yii2-geocoder

Description

This module need to find the coordinates by address using The Google Maps Geocoding API or Yandex Geocoder API., (*1)

Installation

This document will guide you through the process of installing Yii2-geocoder using composer., (*2)

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., (*3)

Geocoders:
- Geocoder::TYPE_GOOGLE
- Geocoder::TYPE_YANDEX

Methods:, (*4)

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

The Versions

16/05 2016

dev-master

9999999-dev

Yii 2 Geocoder with Yandex Geocoder API and Google Maps API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mikhail Maklashov

yii2 geocoder deka6pb yii2-geocoder