dev-master
9999999-devtakes an address array and returns a latitude, longitude and latlng in an array
MIT
The Requires
- php >=7
- linslin/yii2-curl *
by Jonathan Berall
extension yii2 latitude google maps longitude latlng
takes an address array and returns a latitude, longitude and latlng in an array
Takes an address array and return an array of latitude, longitude and latlng, (*1)
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)
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)
takes an address array and returns a latitude, longitude and latlng in an array
MIT
extension yii2 latitude google maps longitude latlng