Skip to content

eminkaplan/php-uavt-adreskodu-botu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP ile uavt adres kodu botu

İçerik

  1. Adres Kodu Nedir
  2. Linkler
  3. Kurulum
  4. Kullanım
  5. Veriler
    1. İller
    2. İlçeler
    3. Bucak-Köy
    4. Mahalle
    5. Cadde-Sokak
    6. Bina
    7. İç Kapı
    8. UAVT Kodundan Adres Getirme

Package

Adres Kodu Nedir?

Adres kodu ülke sınırları içindeki tüm konutlara ait 10 haneli özel bir numaradır.

Bu kütüphaneyi ayrıca il, ilçe, mahalle, köy, cadde-sokak vs gibi bilgileri sorgulamak içinde kullanabilirsiniz.

Linkler

Adres kodunuzu öğrenmek için (https://adreskodu.dask.gov.tr/)

Kurulum

composer require nurullah/uavt-adres-kodu

Kullanım

<?php
    include __DIR__.'/vendor/autoload.php';
    
    use Dask\AdresKodu\AddressProperties;
    use Dask\AdresKodu\AddressInitialize;
    
    $object = new AddressInitialize();
    $object::init();
?>

İller

<?php
    $properties = new AddressProperties();
    $properties->setId(0);
    $properties->setType("cities");
    
    //result
    print_r($object::create($properties)->getResult());
?>

İlçeler

<?php
    $properties = new AddressProperties();
    $properties->setId(1);
    $properties->setType("district");
    
    //result
    print_r($object::create($properties)->getResult());
?>

Bucak-Köy

<?php
    $properties = new AddressProperties();
    $properties->setId(1757);
    $properties->setType("township_village");
    
    //result
    print_r($object::create($properties)->getResult());
?>

Mahalle

<?php
    $properties = new AddressProperties();
    $properties->setId(65);
    $properties->setType("neighborhood");
    
    //result
    print_r($object::create($properties)->getResult());
?>

Cadde-Sokak

<?php
    $properties = new AddressProperties();
    $properties->setId(176887);
    $properties->setType("street");
    
    //result
    print_r($object::create($properties)->getResult());
?>

Binalar

<?php
    $properties = new AddressProperties();
    $properties->setId(496093);
    $properties->setType("building");
    
    //result
    print_r($object::create($properties)->getResult());
?>

İç Kapı

<?php
    $properties = new AddressProperties();
    $properties->setId(8122892);
    $properties->setType("door");
    
    //result
    print_r($object::create($properties)->getResult());
?>

UAVT Kodundan adres getirme

<?php
    $properties = new AddressProperties();
    $properties->setId(1315919009);
    $properties->setType("uavt");
    
    //result
    print_r($object::create($properties)->getResult());
?>

About

Php ile uavt adres kodu botu

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%