2017 © Pedro Peláez
 

library geolocation

Get the geographic location based on latitude and longitude

image

graychen/geolocation

Get the geographic location based on latitude and longitude

  • Friday, August 25, 2017
  • by Graychen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,490 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

geolocation

composer包 根据经纬度得到地理位置信息,暂时还只有baidu地图api接口, (*1)

this is a library for find address by geolocation

Latest Stable Version Total Downloads License StyleCI Build Status Scrutinizer Code Quality Code Coverage Build Status, (*2)

how to use

``` php <?php namespace graychen\Tests;, (*3)

use PHPUnit\Framework\TestCase; use graychen\geolocation\BaiduGeolocation;, (*4)

class BaiduGeolocationTest extends TestCase { private $geolocation;, (*5)

public function setUp()
{
    $this->geolocation=new BaiduGeolocation();
}

/**
 * Asserts that the container can set and get a simple closure with args.
 */
public function testGetgeolocation()
{
    $this->geolocation->latitude= "your latitude";
    $this->geolocation->longitude= "your longitude";
    $this->geolocation->ak= "your ak";
    $json_content=$this->geolocation->getGeolocation();
    $province=$json_content["result"]["addressComponent"]["province"];
    $this->assertEquals("江苏省", $province);
}

}, (*6)

```, (*7)

The Versions

25/08 2017

dev-master

9999999-dev

Get the geographic location based on latitude and longitude

  Sources   Download

MIT

The Requires

 

The Development Requires

by 陈家辉

25/08 2017

v1.0.1

1.0.1.0

Get the geographic location based on latitude and longitude

  Sources   Download

MIT

The Requires

 

The Development Requires

by 陈家辉

25/08 2017

dev-testing

dev-testing

Get the geographic location based on latitude and longitude

  Sources   Download

MIT

The Requires

 

The Development Requires

by 陈家辉

08/08 2017

v1.0.0

1.0.0.0

Get the geographic location based on latitude and longitude

  Sources   Download

MIT

The Requires

 

The Development Requires

by 陈家辉