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

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

        return $raw;
    }