PHP code example of soovey / laravel-dadata-geocode
1. Go to this page and download the library: Download soovey/laravel-dadata-geocode library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soovey / laravel-dadata-geocode example snippets
Dadata\Geocode\DadataGeocodeServiceProvider::class
'DaDataGeo' => Dadata\Geocode\Facades\DadataGeocodeFacade::class
'api_key' => ''
'secret_key' => ''
DaDataGeo::setQuery('Любой, адрес, через, запятую')->load()
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getRawData();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getData();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getCountry();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getCountry();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getDistrict();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getLocality();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getStreet();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getHouseNumber();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getRawFullAddress();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getFullAddress();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getLatitude();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getLongitude();
use YaGeo;
$data = YaGeo::setQuery('Kiev, Vishnevoe, Lesi Ukrainki, 57')->load();
$data = $data->getResponse()->getType();
Dadata\Geocode\DadataGeocodeServiceProvider::class
'YaGeo' => Dadata\Geocode\Facades\DadataGeocodeFacade::class
'api_key' => ''
'api_version' => '1.x'
'language' => 'uk_UA'
'skip_object' => 0
dd(
\YaGeo::make()->setQuery('Ukraine, Kiev')->load()
);
sh
php artisan vendor:publish --provider="Dadata\Geocode\DadataGeocodeServiceProvider" --tag="dadata-geocoding-config"
sh
php artisan vendor:publish
sh
php artisan vendor:publish --provider="Dadata\Geocode\DadataGeocodeServiceProvider" --tag="yandex-geocoding-config"