2017 © Pedro Peláez
 

yii2-extension getlatlng

takes an address array and returns a latitude, longitude and latlng in an array

image

jberall/getlatlng

takes an address array and returns a latitude, longitude and latlng in an array

  • Wednesday, May 17, 2017
  • by jberall
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Get Latitude Longitude

Takes an address array and return an array of latitude, longitude and latlng, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

You also need to install composer require wenbin1989/yii2-curl:dev-master or add "wenbin1989/yii2-curl": "dev-master", (*3)

Either run, (*4)

composer require jberall/getlatlng:dev-master 

or add, (*5)

"jberall/getlatlng": "dev-master"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

```php '3555 Farnam Street', 'city' => 'Omaha', 'province' => 'NB', //or // 'state' => 'NB', 'country' => 'CA', 'postal_code' => '68131', // or // 'zip' => '68131', ]; //you will need to initilize the class so we can reference the google key. use jberall\getlatlng\GetLatLng; $latlng = new GetLatLng(); $arrLatLng = $latlng->getLatLngGoogle($this->toArray()); $this->latlng = $arrLatLng['latlng'] ?? null; ?>, (*8)

The Versions

17/05 2017

dev-master

9999999-dev

takes an address array and returns a latitude, longitude and latlng in an array

  Sources   Download

MIT

The Requires

 

by Jonathan Berall

extension yii2 latitude google maps longitude latlng