public function toGeoJson()
    {
        $raw = array (
            $this->getLongitude(),
            $this->getLatitude()
        );

        if ($this->hasAltitude()) {
            $raw[] = $this->getAltitude();
        }

        return $raw;
    }
public function toGeoJson()
    {
        $raw = array (
            $this->getLongitude(),
            $this->getLatitude()
        );

        if ($this->hasAltitude()) {
            $raw[] = $this->getAltitude();
        }

        return $raw;
    }
public function toGeoJson ( ) { $ raw = array ( $ this -> getLongitude ( ) , $ this -> getLatitude ( ) ) ; if ( $ this -> hasAltitude ( ) ) { $ raw [ ] = $ this -> getAltitude ( ) ; } return $ raw ; }
Get latlng as geo json coordinate.

@return array
Get latlng as geo json coordinate .