src/TgCommands.php
public function sendLocation($peer, $latitude, $longitude)
    {
        $latitude  = $this->formatCoordinate($latitude);
        $longitude = $this->formatCoordinate($longitude);
        $peer      = $this->escapePeer($peer);

        return $this->exec('send_location  ' . $peer . ' ' . $latitude . ' ' . $longitude);
    }
public function sendLocation($peer, $latitude, $longitude)
    {
        $latitude  = $this->formatCoordinate($latitude);
        $longitude = $this->formatCoordinate($longitude);
        $peer      = $this->escapePeer($peer);

        return $this->exec('send_location  ' . $peer . ' ' . $latitude . ' ' . $longitude);
    }
public function sendLocation ( $ peer , $ latitude , $ longitude ) { $ latitude = $ this -> formatCoordinate ( $ latitude ) ; $ longitude = $ this -> formatCoordinate ( $ longitude ) ; $ peer = $ this -> escapePeer ( $ peer ) ; return $ this -> exec ( 'send_location  ' . $ peer . ' ' . $ latitude . ' ' . $ longitude ) ; }
Sends a map of the supplied lat/long coordinated to $peer

@param string $peer
@param string $latitude  in decimal format up to 6 decimal places. Eg: 37.018757
@param string $longitude in decimal format up to 6 decimal places. Eg: -7.965297

@uses exec()
@uses escapePeer()

@return mixed
Sends a map of the supplied lat / long coordinated to $peer