setLatLong() public method

Set latitude and longitude metadata tags for a given entity.
public setLatLong ( float $lat, float $long ) : void
$lat float Latitude
$long float Longitude
return void
Ejemplo n.º 1
0
 public function testLatLong()
 {
     // Coordinates for Elgg, Switzerland
     $lat = 47.483333;
     $long = 8.866667;
     $this->obj->setLatLong($lat, $long);
     $this->assertEquals($this->obj->getLatitude(), $lat);
     $this->assertEquals($this->obj->getLongitude(), $long);
 }