コード例 #1
0
ファイル: Geocode_Test.php プロジェクト: Dirichi/Ushahidi_Web
 /**
  * Tests geocoder using google functions
  *
  * @test
  */
 public function testNominatinGeocoder()
 {
     // reverse geocode
     $address = geocode::reverseNominatim($this->lat, $this->lng);
     $this->assertTrue($address !== FALSE);
     // geocode
     $result = geocode::nominatim($address);
     $this->assertEquals($result["latitude"], $this->lat, null, 0.01);
     $this->assertEquals($result["longitude"], $this->lng, null, 0.01);
 }