Giter VIP home page Giter VIP logo

amap's Introduction

VenAmap

📦 It may be the best SDK for developing Amap App.

Latest Stable Version Total Downloads Latest Unstable Version License

安装要求

  1. PHP >= 7.2
  2. Composer

安装

$ composer require jackven/amap -vvv

使用

基本使用

<?php

use VenAmap\AmapClient;

$config = [
    'key'           => 'xxxxxxxxxxxxxxxxxxxxxxx',
    'private_key'   => 'xxxxxxxxxxxxxxx',                   // 未启用数字签名不用设置该项
];

$app = AmapClient::getInstance($config);
$respone = $app->driver('ReGeo')->setLocation('116.481488,39.990464')->send();

也可以这样使用

<?php
use VenAmap\AmapClient;
use VenAmap\Request\ReGeo;

$config = [
    'key'           => 'xxxxxxxxxxxxxxxxxxxxxxx',
    'private_key'   => 'xxxxxxxxxxxxxxx',                   // 未启用数字签名不用设置该项
];

AmapClient::getInstance($config);

$respone = (new ReGeo())->setLocation('116.481488,39.990464')->send();

目前支持的amap接口

  • Geo 地址转换为经纬度
  • ReGeo 经纬度逆转为地址
  • IP IP定位
  • Walking 步行线路规划
  • TransitIntegrated 公交路径规划
  • Bicycling 骑行路径规划
  • Distance 距离计算
  • Convert 经纬度坐标转换
  • WeatherInfo 天气信息查询
  • District 行政区域字典获取
  • PoiText 关键字词POI检索
  • PlaceAround POI周边检索(POI分类编码

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT

amap's People

Contributors

cnjackven avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.