/** * 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); }