Classes/Domain/Model/Map.php
public function getTravelModes()
    {
        $travelModes = [];
        for ($i = 0; $i <= 4; $i++) {
            $travelModes[$i] = LocalizationUtility::translate(
                'tx_gomapsext_domain_model_map.travel_mode.' . $i,
                'go_maps_ext'
            );
        }

        return $travelModes;
    }
public function getTravelModes()
    {
        $travelModes = [];
        for ($i = 0; $i <= 4; $i++) {
            $travelModes[$i] = LocalizationUtility::translate(
                'tx_gomapsext_domain_model_map.travel_mode.' . $i,
                'go_maps_ext'
            );
        }

        return $travelModes;
    }
public function getTravelModes ( ) { $ travelModes = [ ] ; for ( $ i = 0 ; $ i <= 4 ; $ i ++ ) { $ travelModes [ $ i ] = LocalizationUtility :: translate ( 'tx_gomapsext_domain_model_map.travel_mode.' . $ i , 'go_maps_ext' ) ; } return $ travelModes ; }
Returns the travelModes

@return \array $travelModes
Returns the travelModes