protected function generateLocationFix(Position $position) : Signature\LocationFix
    {
        $location = $position->createRandomized();

        $locationFix = new Signature\LocationFix();
        $locationFix->setProvider("network");
        $locationFix->setProviderStatus(3);
        $locationFix->setLocationType(1);
        $locationFix->setTimestampSnapshot(rand(10000,35000));
        $locationFix->setAltitude($location->getAltitude());
        $locationFix->setLongitude($location->getLongitude());
        $locationFix->setLatitude($location->getAltitude());

        return $locationFix;
    }
protected function generateLocationFix(Position $position) : Signature\LocationFix
    {
        $location = $position->createRandomized();

        $locationFix = new Signature\LocationFix();
        $locationFix->setProvider("network");
        $locationFix->setProviderStatus(3);
        $locationFix->setLocationType(1);
        $locationFix->setTimestampSnapshot(rand(10000,35000));
        $locationFix->setAltitude($location->getAltitude());
        $locationFix->setLongitude($location->getLongitude());
        $locationFix->setLatitude($location->getAltitude());

        return $locationFix;
    }
protected function generateLocationFix ( Position $ position ) : Signature \ LocationFix { $ location = $ position -> createRandomized ( ) ; $ locationFix = new Signature \ LocationFix ( ) ; $ locationFix -> setProvider ( "network" ) ; $ locationFix -> setProviderStatus ( 3 ) ; $ locationFix -> setLocationType ( 1 ) ; $ locationFix -> setTimestampSnapshot ( rand ( 10000 , 35000 ) ) ; $ locationFix -> setAltitude ( $ location -> getAltitude ( ) ) ; $ locationFix -> setLongitude ( $ location -> getLongitude ( ) ) ; $ locationFix -> setLatitude ( $ location -> getAltitude ( ) ) ; return $ locationFix ; }
Generate a location fix

@param Position $position

@return Signature\LocationFix
Generate a location fix