PHP code example of duzhenlin / imap

1. Go to this page and download the library: Download duzhenlin/imap 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/ */

    

duzhenlin / imap example snippets

`
  $config = [
        'qq' => [
            'Key' => 'yourKey'
        ]
    ];
    $app = new \IMap\Core\App($config);
    //地址解析(地址转坐标)
    $app->QQMap->address('济南泉城广场');
    //计算距离
    $app->QQMap->distance('39.983171,116.308479','39.996060,116.353455');
    //ip定位
    $app->QQMap->fromIp('22.22.22.22');